Changes between Version 5 and Version 6 of Features/SyntaxHighlighting


Ignore:
Timestamp:
Mar 31, 2011, 7:29:33 PM (4 years ago)
Author:
szabgab
Comment:

text from Padre.pm

Legend:

Unmodified
Added
Removed
Modified
  • Features/SyntaxHighlighting

    v5 v6  
    1 == Description == 
     1== Syntax highlighting or syntax coloring == 
    22 
    33In 0.84 you could switch between styles in '''View -> Styles -> ''' 
     
    1515You can find out where is the Padre configuration directory on your computer by looking at '''Help -> About -> System Info -> Config''' 
    1616 
     17=head2 Syntax highlighting 
     18 
     19Padre is using L<Wx> (aka wxPerl), wxWidgets for GUI and Scintilla for the editor. 
     20Scintilla provides very good syntax highlighting for many languages but Padre is still 
     21bound by the version of Scintilla included. 
     22 
     23The F<share/styles/default.yml> file is the mapping between the Scintilla defined 
     24constants for various syntactical elements of each language and the C<RGB> values 
     25of the color to be used to highlight them. 
     26 
     27== Adding new syntax highlighting == 
     28 
     29TO DO does this stuff below really belong here? 
     30 
     31Need to define constants in ''Padre::Util'' to be in the ''Padre::Constant'' namespace. 
     32 
     33Need to add the color mapping to ''share/styles/default.yml'' 
     34 
     35Need to implement the ''Padre::Document::Language'' class. 
     36 
     37Need to define the MIME type mapping in ''Padre::Document'' 
     38 
     39For examples see ''Padre::Document::PASM'', ''Padre::Document::PIR'' and ''Padre::Document::Perl''. 
    1740 
    1841== Tickets ==