Results 1 to 2 of 2
  1. #1
    Millman is offline Member
    Join Date
    May 2010
    Posts
    1
    Rep Power
    0

    Default Need a SyntaxHighlighter for my JSF-Application

    Hey guys,

    i am working on a JSF-Application, in which i can store Code Snippets in my Java Derby DB and render them on my .xhtml-Pages with JSF.

    But i am having serious problems, finding a syntax highlighter for my application. I think the best way, i take one that uses JavaScript on my .xhtml pages, right?

    I already tried JHighlight, but i am having problems with the usage, i cant find a tutorial anywhere.

    Another problem is the rendering of html-tags. How can i render a tag like <html> on my Code Snippet? The .xhtml-page can't differ between <html> on the .xhtml page and the <html> in my code snippet.

    Thanks in advance for your help.

  2. #2
    ick
    ick is offline Member
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Default

    Your right about that documentation. I'm still vague on what JHighlight can do. I played with it tonight and came up with:

    A Tag handler
    colorcode.java - ickui - Project Hosting on Google Code

    and an example
    colorcode.jsp - ickui - Project Hosting on Google Code

    Hope it helps in some way. Underwhelmed with it at the moment, but anything server side beats the client-side redraw imo.

Similar Threads

  1. Web application in jsp
    By robc in forum New To Java
    Replies: 3
    Last Post: 05-14-2010, 09:26 AM
  2. Replies: 3
    Last Post: 12-04-2009, 01:10 PM
  3. Replies: 0
    Last Post: 04-22-2009, 02:30 PM
  4. Replies: 0
    Last Post: 02-16-2008, 10:31 PM
  5. Replies: 0
    Last Post: 02-16-2008, 10:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •