0

I am in need to achieve syntax highlighter for a web page., but I have no experience(either Idea) on it. Please guide me to make some good work on it.

Most of my web page may include Java codings and I will design my web page by using JSf with primefaces.

Guide me by any links or any thoughts to proceed with that work.

Thanks in advance.

Arun
  • 825
  • 4
  • 14
  • 31
  • Software recommendation questions aren't considered appropriate for SO. Syntax highlighting is usually done with javascript after a page is loaded to let you just emit a simple `` in your server-side code, so search for "javascript syntax highlighting" – millimoose Feb 14 '13 at 12:29
  • possible duplicate of [Syntax highlighting code with Javascript](http://stackoverflow.com/questions/160694/syntax-highlighting-code-with-javascript) – BalusC Feb 14 '13 at 12:31
  • 1
    Note that this is completely unrelated to JSF. All you need to do is to let JSF print the desired sourcecode blocks inside HTML `
    ` tags. StackOverflow and OmniFaces showcase sites use Prettify. PrimeFaces and RichFaces showcase sites use Syntaxhighlighter.
    – BalusC Feb 14 '13 at 12:32
  • Yes BalusC. I just intended to express the technology that I am using. So only I noted JSF here. Now I understood the things. Thanks for the comments :) – Arun Feb 14 '13 at 12:45

1 Answers1

0

Check out this javascript highlighter: http://alexgorbatchev.com/SyntaxHighlighter/. Used in WordPress, works great.

vainolo
  • 6,907
  • 4
  • 24
  • 47