How to edit a Netbeans Fonts and Colors Preview document?

In the Netbeans 6.5 Tools → Options → Fonts and Colors → Syntax dialog box, you can change the appearance of the Netbeans text editor. When you select a language, you are given a preview of your font / color scheme. However, when I browse Java, there are far more options for syntactic changes than are displayed in this preview window. If I could see the more reliable part of the code, I could see the immediate effect of more parameters.

How can I provide a preliminary document for viewing font / color changes?

UPDATE:

Having studied this a little more, I was able to narrow the problem a bit. From what I can tell, everything in Netbeans is considered a plugin. The GUI editor is a plugin, and even the text editor is a plugin. This means that sometime the part of Netbeans that actually parses Java code and makes syntax flare is also a plugin (since Java is just one of the many languages ​​that Netbeans highlights, it makes sense, it's a plugin).

I think that eternity is on the right track with his proposal. The tutorial on creating a manifest file editing plugin pointed me in the right direction. The tutorial eludes the file used as a sample document used to preview fonts / colors. He tells you how to create it inside this new plugin project. (Located in the "Registering Settings in the NetBeans System File System" section, Part 4. About 4/5 of the path down the page.)

, Java . , , . (Windows: C:\Documents and Settings\saterus.netbeans\config).

, xml , . Java, , , .

, , SO , .

+5
3

, ( mime), " " ( NetBeans, , , , NetBeans).

"layer.xml" . .

, , Python:

<filesystem>
    ...
    <folder name="OptionsDialog">
        <folder name="PreviewExamples">
            <folder name="text">
                <file name="x-python" url="PythonExample.py"/>
            </folder>
        </folder>
        ...

PythonExample.py , .

, , () mime, , . , (. _hidden http://doc.javanb.com/netbeans-api-javadoc-5-0-0/org-openide-filesystems/org/openide/filesystems/MultiFileSystem.html.

, .

, , , , , , . , , , , . , .

NetBeans : http://www.netbeans.org/issues/show_bug.cgi?id=155964

- Tor

+2

, , unix grep i.e.

grep -lr "some part of the current sample code" /path/to/netbeans

ruby, , org-netbeans-modules-ruby.jar RubyExample. , .

, -!

+4

All Articles