Jump to content



Photo

AutoIt Syntax Highlighter


  • Please log in to reply
11 replies to this topic

#1 the DtTvB

the DtTvB

    Adventurer

  • Active Members
  • PipPip
  • 113 posts

Posted 10 October 2006 - 03:50 AM

And finally, I made a syntax highlighter for autoit.
It currently supports:
  • Strings
  • Comments
  • # statements (e.g. #include-once)
  • Variables
  • Macros
  • Functions
  • Numbers
But not:
  • Comment block
  • Operators
  • Sent keys
  • COM Objects
It can be used in web-based AutoIt applications.

How it works?

Step 1: Split the string into lines.
Step 2: Loop through each lines.

Step 2.1: Loop through each characters to find strings, comments, and preprocessors. Highlight and enity it (Will change A to A)
Step 2.2: Close the unclosed tags
Step 2.3: Indent the code, so we can match the text at the beginning of the string.
Step 2.4: Highlight the keywords.
Step 2.5: Highlight the numbers, functions, macros, and variables.


The global variables.
I defined the global variables so I don't have to declare it each time.
It defines how the syntax will look.
AutoIt         
; Set the global variable so we don't have to declare it each time. Global $stringStart   = '<span style="color: #999">'; Global $stringEnd     = '</span>'; Global $commentStart  = '<span style="color: #090; font-style: italic">'; Global $commentEnd    = '</span>'; Global $keywordStart  = '<span style="color: #00f; font-weight: bold">'; Global $keywordEnd    = '</span>'; Global $functionstart = '<span style="color: #009; font-weight: bold; font-style: italic">'; Global $functionend   = '</span>'; Global $numberStart   = '<span style="color: #909; font-weight: bold; font-style: italic">'; Global $numberEnd     = '</span>'; Global $macroStart    = '<span style="color: #f0f; font-weight: bold">'; Global $macroEnd      = '</span>'; Global $variableStart = '<span style="color: #900; font-weight: bold">'; Global $variableEnd   = '</span>'; Global $hashStart     = '<span style="color: #f0f; font-style: italic">'; Global $hashEnd       = '</span>';ƒo݊÷ Ù´áyû§rبžÚ¢{Þ®Ûaz[`µ©Ýjjm8b±û§rبÊ'½êí²Ø^–Ø-jwZš›h–Ø-jwZš–®¶ˆ­sc²W66W2F†R…DÔÂ6†&7FW ¦gVæ2&WGW&äW66VD6†"‚b33c¶2 ––b‚b33c¶2ÓÒb33“²fÇC²b33“²’F†Và —&WGW&âb33“²fÇC²b33“³° –VÇ6T–b‚b33c¶2ÓÒb33“²fwC²b33“²’F†Và —&WGW&âb33“²fwC²b33“³° –VÇ6T–b‚b33c¶2ÓÒb33“²fײb33“²’F†Và —&WGW&âb33“²fײb33“³° –VÇ6P —&WGW&âb33c¶3° –VæD–`¦VæDgVæ0ƒo݊÷ Ù²žË +v·©•§"žîËb¢ÛÓ~©ŠÊÞ}êޝǭ¢Ø^–)Þjwm…í7êȬ¶¤{,(­ÔáŠÇîËb¢wâÛ-…ì(­Û)yȟ‰çbžØ^Ó~¬¶­ŠË.®º.×o&§¢v¥¦§ºg«‰Ç!j¶œµêÚºÚ"µÍŽÈ™XÙÈHÙ^]Ûܙ™[˜È™XÙRÙ^]ÛܙÊžT™Yˆ  ˆÌ ÍŽÜ    ˆÌ ͎ÜÊB‚IˆÌ ͎ÜHÝš[™Ô™YÑ^™XÙJ  ˆÌ ÍŽÜ    ˆÌÎNÊÚJJטK^Œ NW×JJ  ˆÌÎNÈ   ˜[È  ˆÌ ͎ÜÈ   ˜[È  ˆÌÎNÊJטK^Œ NW×JIˆÌÎNË    ˆÌÎNɈÌLŽÌIˆÌÎNÈ   ˜[È  ˆÌ ͎ÚÙ^]Ûܙݝ    ˜[È  ˆÌÎNɈÌLŽÌ‰ˆÌÎNÈ  ˜[È  ˆÌ ͎ÚÙ^]Ûܙ[™  ˜[È  ˆÌÎNɈÌLŽÌɈÌÎNÊN™[™[˜ƒo݊÷ Ù´ázf¢û§rبŸ}ÿm«­¢+Øì5…¥¸™Õ¹Ñ¥½¸)™Õ¹Œ}Må¹Ñ…á!¥¡±¥¡Ð ˜ŒÀÌØí¤ƒo݊÷ ØX«²×(ž÷«¶Ú.ž,eŠwžØ§‚Ê"µÆ§²™b¶Ø^–)ÞrŠëyËeÉ©Ýv‹ay§-¹©l¦X­jëhŠ×6  ; Windows line ending   --> Unix line ending.     $d = stringReplace($d, @CrLf, @Lf);     ; Macintosh line ending --> Unix line ending.     $d = stringReplace($d, @Cr, @Lf);     ; Split into lines...     $l = stringSplit($d, @Lf, 1);ƒo݊÷ Ø7œ•ªÞ²‰ž½ªâi¹^±«­¢+Ø$˜ŒÀÌØí¼€ô€˜ŒÌä옌ÌäììQ¡”½ÕÑÁÕÐ(%™½È€˜ŒÀÌØí¤€ô€ÄÑ¼€˜ŒÀÌØí±lÁt($$˜ŒÀÌØíÀ€ô€˜ŒÌä옌Ìäìì ÕÉɕ¹ÐÁ…É͕±¥¹”¸($$˜ŒÀÌØíЀô€˜ŒÌä옌ÌäììQ•áЁ¹½Ñ…Ñ¥½¸¸ƒo݊÷ ØX§vØ^ªê-zƧuÚ"´:'ßÛp¢ºò‰ûazËkŠx!j÷­…ç¬qª^v«¨µë‚«¨µÉbrJ®¢Ú®¢Ø^­ê®¢Ú®¢Ú®¢Ò-Â)e²™b¶)í¢f§ÊËkŠx,ªê-rXœ’«¨¶«¨¶«z«¨µ©Ýªê-ªê-nëm…êÞ²émŠË-ŠYm…ë™æ®¶ˆ­s`“²–bvRf÷VæBF†RF÷V&ÆRV÷FP ––b‚b33c¶66†"ÓÒb33“²gV÷C²b33“²’F†Và “²–bæòFW‡B÷VæVBF†Vâ÷VâF†RFW‡Bà ––b‚b33c·BÓÒb33“²b33“²’F†Và ’b33c·BÒb33“²gV÷C²b33“³° ’b33c·f׳Òb33c·7G&–æu7F'Bfײb33“²gV÷C²b33“³° “²–bF†RFW‡B—2÷VæVBW6–ærF†RgV÷C²F†Vâ6Æ÷6RF†RFW‡Bà –VÇ6T–b‚b33c·BÓÒb33“²gV÷C²b33“²’F†Và ’b33c·BÒb33“²b33“³° ’b33c·f׳Òb33“²gV÷C²b33“²fײb33c·7G&–ætVæC° “²VÇ6R†Rærâ÷VæVBW6–ærF†Rb33“²Â÷"6öÖÖVçBÖöFR’Â&–çB2æ÷&ÖÂà –VÇ6P ’b33c·f׳Òb33“²gV÷C²b33“³° –VæD–` “²'WB–bvRf÷VæBF†R6–ævÆRV÷FP –VÇ6T–b‚b33c¶66†"ÓÒgV÷C²b33“²gV÷C²’F†Và “²–bæòFW‡B—2÷VæVBF†Vâ÷VâF†RFW‡Bà ––b‚b33c·BÓÒb33“²b33“²’F†Và ’b33c·BÒgV÷C²b33“²gV÷C³° ’b33c·f׳Òb33c·7G&–æu7F'BfײgV÷C²b33“²gV÷C³° “²–bF†RFW‡B–b÷VæVBW6–ærF†Rb33“²F†Vâ6Æ÷6RF†RFW‡Bà –VÇ6T–b‚b33c·BÓÒgV÷C²b33“²gV÷C²’F†Và ’b33c·BÒb33“²b33“³° ’b33c·f׳ÒgV÷C²b33“²gV÷C²fײb33c·7G&–ætVæC° “²VÇ6RÂ&–çB2æ÷&ÖÂà –VÇ6P ’b33c·f׳ÒgV÷C²b33“²gV÷C³° –VæD–ƒo݊÷ ØX§vØ^r‰¦z{ljw^±Æ©z+S…ç(šg§µÆ§ßÛ[yÉh±çZØZ²²Ö­zg§¶Æ¥²‹(Š×hzÉ÷öÛZ‘ëh¢Z'‚Ú¡×¢µÊ{ŸHŸ¢éÝi©Ýž‹^ÆØ¬¢—§yØ­ŠÆœ¢ižž×¥±âãM7éÇ!jƒo݊÷ Ø)h±ëazéܖ‹vÖ [(Šw^žÛaz×±¶Ê"µÆ§™«†Ø^!ö­¶¬µªí¡ûazX§y«­¢+Ø$$ì=-…䰁ݔ™¥¹¥Í¡•Ñ¡”±½½À°Ý”±½Í•Ñ¡”Õ¹±½Í•ÍÑÉ¥¹œ¸($%¥˜€ ˜ŒÀÌØíЀôô€˜ŒÌäì™ÅÕ½Ð옌Ìäì=Ȁ˜ŒÀÌØíЀôô€™ÅÕ½Ð옌Ìäì™ÅÕ½Ð줁ѡ•¸($$$˜ŒÀÌØíÀ€™…µÀìô€˜ŒÀÌØíÍÑÉ¥¹¹ì($$쀸¸…¹Ý”±½Í”Ñ¡”½µµ•¹Ð¸($%•±Í•%˜€ ˜ŒÀÌØíЀôô€˜ŒÌäì옌Ìä줁ѡ•¸($$$˜ŒÀÌØíÀ€™…µÀìô€˜ŒÀÌØí½µµ•¹Ñ¹ì($$쀸¸…¹Ý”±½Í”Ñ¡”¡…Í ¸($%•±Í•%˜€ ˜ŒÀÌØíЀôô€˜ŒÌä쌘ŒÌä줁ѡ•¸($$$˜ŒÀÌØíÀ€™…µÀìô€˜ŒÀÌØí¡…Í¡¹ì($%•¹‘%˜($$ì]”¥¹‘•¹ÐÑ¡”Ñ•áаÍ¼¥Ð˜ŒÌäí́•…Í¥•ȁѼÁ…É͔¸($$˜ŒÀÌØíÀ€ô€˜ŒÌä쀘ŒÌä쀙…µÀ쀘ŒÀÌØíÀ€™…µÀ쀘ŒÌä쀘ŒÌäììƒo݊÷ Øx †X †ÛazG²ÂŠÝ±«­¢+Ø$$ì!¥¡±¥¡ÐÑ¡”­•åݽɐ¸€˜ŒÀÌØíÀ¥Ì‰åɕ˜¸($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäí¥˜˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíÑ¡•¸˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä핱͕¥˜˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä핱͔˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä핹‘¥˜˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäí͕±•Ð˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíÍݥэ ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä퍅͔˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä핹‘Íݥэ ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä핹‘Í•±•Ð˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä홽ȘŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäí¥¸˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäí¹•áИŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíÍѕÀ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíÝ¥Ñ ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä핹‘Ý¥Ñ ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíÝ¡¥±”˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíݕ¹˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä푼˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíչѥ°˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäí™Õ¹Œ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä핹‘™Õ¹Œ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä퍽¹ÍИŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä퍽¹Ñ¥¹Õ•…Í”˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä퍽¹Ñ¥¹Õ•±½½À˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä푕™…ձИŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä푥´˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä핹մ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäí•á¥Ð˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäí•á¥Ñ±½½À˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä홅±Í”˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌä흱½‰…°˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäí±½…°˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíɕ‘¥´˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíɕÑÕɸ˜ŒÌäì¤ì($%ɕÁ±…•-•åݽɑ̀ ˜ŒÀÌØíÀ°€˜ŒÌäíÑÉՔ˜ŒÌäì¤ìƒo݊÷ Øx †X †Ú-…êì¶çßjëhŠ×6       ; Highlight the number.         $p = stringRegExpReplace($p, '([^A-Za-z0-9_#])([0-9]+)([^A-Za-z0-9_])', '\1' & $numberStart & '\2' & $numberEnd & '\3');         ; .. and the hexadecimal too.         $p = stringRegExpReplace($p, '([^A-Za-z0-9_#])(0x)([0-9]+)([^A-Za-z0-9_])', '\1' & $numberStart & '\2\3' & $numberEnd & '\4');         ; Now, highlight the function.         $p = stringRegExpReplace($p, '([A-Za-z0-9_]+)(\s*?)\(', $functionstart & '\1' & $functionend & '\2(');         ; Then, highlight the macro.         $p = stringRegExpReplace($p, '@([A-Za-z0-9_]+)', $macroStart & '@\1' & $macroEnd);         ; And some variable.         $p = stringRegExpReplace($p, '\$([A-Za-z0-9_]+)', $variableStart & '$\1' & $variableEnd);         ; Finally, outdent the text.         $p = stringMid($p, 2);ƒo݊÷ Ø]¶‹ayø§jZ.¶›­r‰íŠ{ž¶¥¢Š^žØ¥¶žÚ¶¬r¸©¶·­º¹ÞÖ®¶ˆ­s`’b33c¶òf׳Òb33c·fײ7$Æc° –æW‡@  —&WGW&âb33c¶ó°¦VæDgVæƒo݊÷ Ù:.±è­q©eK)íkâ‚b‚tß«®*m¶ˆb‚b‚H¶ÈhºW[{ Ú¦—Š{az[i­è-µ¨ºÚ"µÍŽÈÝØÜš‚ÛۜÛÛUܚ]H     ˆÌÎNÖ TÝٙY PžNˆH‰ˆÌÎNÈ ˜[ÈܓŠNÛۜÛÛUܚ]H     ˆÌÎNÐÛ۝[ UNˆ^ Ú[    ˆÌÎNÈ   ˜[ÈܓŠNÛۜÛÛUܚ]H ܓŠN‚‰ˆÌ ͎Ù]HHš[T™XY     ˆÌÎNÜÛÛYØÜš ˜]LɈÌÎNÊNÛۜÛÛUܚ]H     ˆÌÎNɛÜ™I™ÝɈÌÎNÈ ˜[ÈÔÞ[^YÚYÚ     ˆÌ ͎Ù]JH    ˜[È  ˆÌÎNɛËÜ™I™ÝɈÌÎNÊN


It is a bit slow, but it does work!
See the result here.

The full code: Attached File  highlighter.au3   5.95K   295 downloads

Edited by the DtTvB, 10 October 2006 - 03:51 AM.






#2 the DtTvB

the DtTvB

    Adventurer

  • Active Members
  • PipPip
  • 113 posts

Posted 10 October 2006 - 03:53 PM

Uhh.. Any comments?

#3 CoePSX

CoePSX

    Polymath

  • Active Members
  • PipPipPipPip
  • 237 posts

Posted 10 October 2006 - 04:17 PM

This is really good!

The result looks just like SciTE synatx colors.

I haven't taken a close look at the code yet.

If you think it's kinda slow, you could try using RichEdit instead of HTML.
Works the same way, and since you have the syntax lexer it should be
easy.

Well done. :lmao:

You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.


#4 the DtTvB

the DtTvB

    Adventurer

  • Active Members
  • PipPip
  • 113 posts

Posted 10 October 2006 - 04:29 PM

I mean it's a bit slow, it takes about a second to parse the index.aux of the AutoForum. And it takes 2.5 seconds to parse the Web.au3 file.

#5 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 10 October 2006 - 04:37 PM

It works really well DtTvB. Good work!
My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

#6 karman

karman

    Wayfarer

  • Active Members
  • Pip
  • 68 posts

Posted 10 October 2006 - 04:38 PM

Why are you writing ; after each line? It dosnt make you look cool .. seriously ..

Ok what I mean is, why make it look like another programming language? (php?) ..

Edited by karman, 10 October 2006 - 04:39 PM.


#7 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 10 October 2006 - 04:39 PM

Maybe he is used to doing it in other languages?
My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

#8 cppman

cppman

    Anonymous

  • Active Members
  • PipPipPipPipPipPip
  • 1,626 posts

Posted 11 October 2006 - 07:33 AM

Why are you writing ; after each line? It dosnt make you look cool .. seriously ..

Ok what I mean is, why make it look like another programming language? (php?) ..

Maybe its his programming style. Does it really matter? lol.

Edited by CHRIS95219, 11 October 2006 - 07:38 AM.


#9 The Kandie Man

The Kandie Man

    All Your Base Are Belong To Us

  • Active Members
  • PipPipPipPipPipPip
  • 950 posts

Posted 11 October 2006 - 08:34 AM

Very nice, i like this. I would also like the php version of this script that this forum uses when people post autoit code. Anyone know where i could fine such a php script?

Edited by The Kandie Man, 11 October 2006 - 08:34 AM.

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

#10 the DtTvB

the DtTvB

    Adventurer

  • Active Members
  • PipPip
  • 113 posts

Posted 11 October 2006 - 09:57 AM

Umm.. I think it's called GeSHi (General Syntax Highlighter), maybe, here!

And, and I previously code PHP and Javascript, but sometimes I code VB too. That's why my syntax is weird. Even through, my PHP coding style is weird.

#11 darkshadow791

darkshadow791

    Adventurer

  • Active Members
  • PipPip
  • 109 posts

Posted 14 December 2006 - 03:00 AM

I like this but was wondering if there were other ways I could use this, like customizing what is highlighted and saving the file as plain text but still see the highlighting?

I posted a Q about it here>
http://www.autoitscript.com/forum/index.php?showtopic=37848

#12 ConsultingJoe

ConsultingJoe

    ConsultingJoe.com

  • Active Members
  • PipPipPipPipPipPip
  • 1,667 posts

Posted 15 December 2006 - 07:53 PM

can you make the code into one function that you plug in the code and it returns the highlighted html?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users