Special User Sections > Site/Forum Features
Autohotkey added to geshi syntax highlighting feature on forum
mouser:
all thanks should go to geshi -- i didn't do much more than download the latest zip file :)
mouser:
following ewemoa's suggestion i made a meager $10 donation to geshi's sourceforge donation account on behalf of dc members.
ewemoa:
Thanks :Thmbsup:
skwire:
Is there any way we can adjust the colours used for that AHK highlighter? I much prefer the colours used for the AutoIt highlighter.
ewemoa:
I'm comparing GeSHi's autoit.php with autohotkey.php:
autoit.php
--- Code: PHP ---'KEYWORDS' => array( 1 => 'color: #0000FF; font-weight: bold;', 2 => 'color: #800000; font-weight: bold;', 3 => 'color: #000080; font-style: italic; font-weight: bold;', 4 => 'color: #0080FF; font-style: italic; font-weight: bold;', 5 => 'color: #F000FF; font-style: italic;', 6 => 'color: #A00FF0; font-style: italic;' ), 'COMMENTS' => array( 'MULTI' => 'font-style: italic; color: #669900;', 0 => 'font-style: italic; color: #009933;', 1 => 'font-style: italic; color: #9977BB;', ), 'ESCAPE_CHAR' => array( 0 => '' ), 'BRACKETS' => array( 0 => 'color: #FF0000; font-weight: bold;' ), 'STRINGS' => array( 0 => 'font-weight: bold; color: #9977BB;' ), 'NUMBERS' => array( 0 => 'color: #AC00A9; font-style: italic; font-weight: bold;' ), 'METHODS' => array( 1 => 'color: #0000FF; font-style: italic; font-weight: bold;' ), 'SYMBOLS' => array( 0 => 'color: #FF0000; font-weight: bold;' ), 'REGEXPS' => array( 0 => 'font-weight: bold; color: #AA0000;' ),
autohotkey.php
--- Code: PHP ---'KEYWORDS' => array( 1 => 'color: #AAAAFF; font-weight: bold;', // reserved #blue 2 => 'color: #88FF88;', // BIV yellow 3 => 'color: #FF00FF; font-style: italic;', // commands purple 4 => 'color: #888844; font-weight: bold;', // functions #0080FF 5 => 'color: #000000; font-style: italic;', // directives #black 6 => 'color: #FF0000; font-style: italic;', // hotkeys #red 7 => 'color: #000000; font-style: italic;', // gui commands #black 8 => 'color: #000000; font-style: italic;' // gui controls ), 'COMMENTS' => array( 'MULTI' => 'font-style: italic; color: #669900;', 1 => 'font-style: italic; color: #009933;' ), 'ESCAPE_CHAR' => array( 0 => '' ), 'BRACKETS' => array( 0 => 'color: #00FF00; font-weight: bold;' ), 'STRINGS' => array( 0 => 'font-weight: bold; color: #008080;' ), 'NUMBERS' => array( 0 => 'color: #0000dd;' ), 'METHODS' => array( 1 => 'color: #0000FF; font-style: italic; font-weight: italic;' ), 'SYMBOLS' => array( 0 => 'color: #000000; font-weight: italic;' ), 'REGEXPS' => array( 0 => 'font-weight: italic; color: #A00A0;', 1 => 'color: #CC0000; font-style: italic;', 2 => 'color: #DD0000; font-style: italic;', 3 => 'color: #88FF88;' ),
Perhaps the following would work as a change:
--- Code: PHP ---'KEYWORDS' => array( 1 => 'color: #0000FF; font-weight: bold;', // reserved 2 => 'color: #800000; font-weight: bold;', // BIV 3 => 'color: #000080; font-style: italic; font-weight: bold;', // commands 4 => 'color: #0080FF; font-style: italic; font-weight: bold;', // functions 5 => 'color: #F000FF; font-style: italic;', // directives 6 => 'color: #FF0000; font-style: italic;', // hotkeys #red 7 => 'color: #000000; font-style: italic;', // gui commands #black 8 => 'color: #000000; font-style: italic;' // gui controls ), 'COMMENTS' => array( 'MULTI' => 'font-style: italic; color: #669900;', 1 => 'font-style: italic; color: #009933;' ), 'ESCAPE_CHAR' => array( 0 => '' ), 'BRACKETS' => array( 0 => 'color: #FF0000; font-weight: bold;' ), 'STRINGS' => array( 0 => 'font-weight: bold; color: #9977BB;' ), 'NUMBERS' => array( 0 => 'color: #AC00A9; font-style: italic; font-weight: bold;' ), 'METHODS' => array( 1 => 'color: #0000FF; font-style: italic; font-weight: bold;' ), 'SYMBOLS' => array( 0 => 'color: #FF0000; font-weight: italic;' ), 'REGEXPS' => array( 0 => 'font-weight: italic; color: #A00A0;', 1 => 'color: #CC0000; font-style: italic;', 2 => 'color: #DD0000; font-style: italic;', 3 => 'color: #88FF88;' ),
It looks like autohotkey.php groups 'while', 'if', 'else', and 'return' separately from commands though they are listed as commands in the AHK docs.
Also, autohotkey.php doesn't appear to mention 'static', 'global', 'local', or 'ByRef'.
Perhaps it's worth checking out the content of Extras\Editors\Syntax\...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version