Java Reference
In-Depth Information
12.5.2
Registering file extensions
Yo u c a n u s e t h e
File Types
panel to add to and remove from the list of exten-
sions registered to a file type, although you can't register the same file extension
to more than one file type. For example, if you want to be able to edit your
SQL
files in the editor, you can add the extensions .sql and .ddl to the list of exten-
sions registered to text files. A better way, though, is to create a custom file type
for
SQL
files.
12.5.3
Creating a custom file type
Custom file types allow you to extend the kind of files the editor is aware of by
providing information about what keywords are relevant to the file type, what
comments look like, and so forth. Editing a custom file type is like editing a plain-
text file, with the addition of keyword and comment syntax highlighting and
number recognition. To create a new file type, click the
Add
button in the
File
Ty p e s
panel to bring up the
Add/Edit File Type
dialog, as shown in figure 12.9.
Figure 12.9
Create your own custom file types to
extend the editor's capabilities.