#10 Syntax highlighting via Kate HL engine

closed-fixed
nobody
None
5
2008-06-18
2007-06-25
No

Here is my implementation of syntax highlight using Syntax::Hightlight::Engine::Kate engine (thanks to Kannan Goundan for pointing to it).

I've used to redesign Codestriker::Http::Render.pm internal workflow a little but in my day-to-day work it works just like before. The only thing I haven't check in real life is LXR linking but I'm quite sure it works too.

Discussion

  • Syntax highlight using Syntax::Hightlight::Engine::Kate engine

     
  • Highlight using S:H:E:Kate, source-highlight or webcpp

     
  • Logged In: YES
    user_id=324736
    Originator: YES

    Here is another iteration of highlight patch, now with the ability of using Perl-only Syntax::Highlight::Engine::Kate as well as some external highlighters:
    * WebCPP (http://webcpp.sf.net)
    * GNU source-highlight ((http://www.gnu.org/software/src-highlite/source-highlight.html).

    I've tested it under CGI perl only, not under mod_perl.
    File Added: codestriker-1.9.3_hl2.diff

     
  • David Sitsky
    David Sitsky
    2008-01-11

    Logged In: YES
    user_id=208928
    Originator: NO

    Thanks for posting this - I haven't forgetten it - just been flat out - its high up on the list of getting it integrated.

    Cheers,
    David

     
  • David Sitsky
    David Sitsky
    2008-03-14

    Logged In: YES
    user_id=208928
    Originator: NO

    Hi there,

    Now that Codestriker's Render.pm has been refactored to use the template toolkit, and that the text transformations have been extracted out into little modules, this should be easier to integrate in. This is next on my list.

     
  • David Sitsky
    David Sitsky
    2008-06-18

    Logged In: YES
    user_id=208928
    Originator: NO

    Hi there,

    Finally I got around to looking at this. In the end, I found Kate was way too slow even for smallish reviews on my system. I also found that source-highlight was not an option, since it isn't reliably supported/maintained for win32, and webcpp doesn't seem to be very active anymore.

    As you mentioned before, the highlight package http://www.andre-simon.de/ is another option, but can't work a line at a time. Since I have refactored the delta rendering code, I made it so chunks are passed to text filters, so we can use it now. This program is very fast, and is well supported for all major platforms, and supports lots of languages.

    The code is in there now in CVS, so feel free to give it a try. I am using it at work now, and am sure it will need some more changes, but so far so good. I'll also need to put inm LXR support, but in theory that shouldn't be too bad now.

    Thanks for your help in this - I've made sure its mentioned in the CHANGELOG file.

    Cheers,
    David

     
  • David Sitsky
    David Sitsky
    2008-06-18

    • status: open --> closed-fixed