Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Syntax highlighter for Programming blog  RSS feed

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am working on a blog. So wanted to check what kind of Syntax highlight JavaRanch is using to highlight code samples?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This one: http://alexgorbatchev.com/SyntaxHighlighter/
 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya, I tried it. But its not working for me. May I am doing something wrong. I just created pre tag and put complete code there. and then put a class "brush: java". But it's not highlighting my code.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the examples on the site don't work, then you can always check out how it's integrated here :-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!