Introduction
In order to use the extansible capabilities you must be familiar with eclipse extensions.
Extending for new compilers Go to Reference documentation in http://www.eclipse.org/cdt/ as this plugin is provided by the CDT.
Once you have a new compiler set if you wanna share it with other users let me know.
Extending assembler editor
With this plugin you can define syntax coloring depending on the project type of the .asm, .as, .a file.
Firt of all you need to create a new plugin:
|
- File -> New Project
- Plug-in project
- Insert the required information
|
Now we're going to extend the Assembler editor:
|
- Open plugin.xml
- Go to Extensions tab
- Click Add...
- Search: org.etnia.extensions.editor
- Click Finish
- A new item should be added
- Click on the right button to see you options
- Write all the configuration needed here are the explanation of each field
|
ProjectTypeEditor
Field |
Description |
Type |
ProjectTypeId |
The identication of the project. examples: org.etnia.dsp2400.toolchain, org.etnia.dsp2400.toolchain |
String |
CaseSensitive |
If the assembler language is case sensitive |
Boolean |
Color |
Default color in HTML format (RGB) without #. Examples: FF0000 (for red) |
String |
Opcodes
Field |
Description |
Type |
KeyWords |
Coma separated list with keywords |
String |
Color |
Default color in HTML format (RGB) without #. |
String |
Bold |
Bold format |
Boolean |
Precompilers
Field |
Description |
Type |
KeyWords |
Coma separated list with keywords |
String |
Color |
Default color in HTML format (RGB) without #. |
String |
Bold |
Bold format |
Boolean |
Registers
Field |
Description |
Type |
KeyWords |
Coma separated list with keywords |
String |
Color |
Default color in HTML format (RGB) without #. |
String |
Bold |
Bold format |
Boolean |
SingleLineComment
Field |
Description |
Type |
StartString |
String wich defines inline comments like // in C,Java... |
String |
Color |
Default color in HTML format (RGB) without #. |
String |
Left |
The StartString must be in column 0 in the text file. |
Boolean |
|