| | 17 | =head2 Syntax highlighting |
| | 18 | |
| | 19 | Padre is using L<Wx> (aka wxPerl), wxWidgets for GUI and Scintilla for the editor. |
| | 20 | Scintilla provides very good syntax highlighting for many languages but Padre is still |
| | 21 | bound by the version of Scintilla included. |
| | 22 | |
| | 23 | The F<share/styles/default.yml> file is the mapping between the Scintilla defined |
| | 24 | constants for various syntactical elements of each language and the C<RGB> values |
| | 25 | of the color to be used to highlight them. |
| | 26 | |
| | 27 | == Adding new syntax highlighting == |
| | 28 | |
| | 29 | TO DO does this stuff below really belong here? |
| | 30 | |
| | 31 | Need to define constants in ''Padre::Util'' to be in the ''Padre::Constant'' namespace. |
| | 32 | |
| | 33 | Need to add the color mapping to ''share/styles/default.yml'' |
| | 34 | |
| | 35 | Need to implement the ''Padre::Document::Language'' class. |
| | 36 | |
| | 37 | Need to define the MIME type mapping in ''Padre::Document'' |
| | 38 | |
| | 39 | For examples see ''Padre::Document::PASM'', ''Padre::Document::PIR'' and ''Padre::Document::Perl''. |