Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Syntax highlighting?

edited August 2006 in Vanilla 1.0 Help
how hard would it to make it so the <code> tags would do syntax highlighting?
«1

Comments

  • Might be worth talking to ithcy about it - he was doing it here http://lussumo.com/community/discussion/2005/
  • edited July 2006
    Yeah i will indeed. Ill whisper him now
  • let us know how you get on ... I'd be interested in this
  • ithcyithcy New
    edited July 2006
    http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=113 just added it - it's been sitting around for a while :) let me know if it works out for you.
  • hey, and thanks to whoever gave it 4 stars without downloading it.
  • hey how hard do you think it would be to have it highlight category specific. Say i make a category php and then i post in tags in that category it would highlight the php code?
  • i don't know what you mean by "post in tags" but i think i understand. i'd have to think about it though.
  • i didnt mean post in tags. I what i mean is i make a php category post in that category saying <code> <?php echo "hello"; ?> </code> and it gets highlighted in php as it is in the php category.
  • ok it dont work for me :( It just doesnt do anything.
  • did you read readme.txt?
  • yes i did, no highlight link or whatever you said came up
  • where is your forum? can you show me?
  • also, the highlight link only shows up next to comments that have <code> blocks in them. if you don't have a code block, you won't see a highlight link.
  • let me try again, its on localhost so i cant
  • ok its working!! anyway to have it defaulty highlighted and a button to revert it? or is it just a option i change?
  • ithcyithcy New
    edited July 2006
    i can put that option into the next version... would not be difficult. it just saves resources this way.
  • yeah its just that highlighting will be a key part to the site and needs to either be always on ordefaulty on
  • i'll start working on it just for you :)
  • yay :P we love you itchy! (me and my invisible lovers)
  • hahaa maybe instead of the highlight link i should make a "copy plain" link on each codeblock. the whole purpose of "revert" is to allow users to copy code to the clipboard without the line numbers.
This discussion has been closed.