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.
Options

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

  • Options
    Might be worth talking to ithcy about it - he was doing it here http://lussumo.com/community/discussion/2005/
  • Options
    edited July 2006
    Yeah i will indeed. Ill whisper him now
  • Options
    let us know how you get on ... I'd be interested in this
  • Options
    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.
  • Options
    hey, and thanks to whoever gave it 4 stars without downloading it.
  • Options
    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?
  • Options
    i don't know what you mean by "post in tags" but i think i understand. i'd have to think about it though.
  • Options
    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.
  • Options
    ok it dont work for me :( It just doesnt do anything.
  • Options
    did you read readme.txt?
  • Options
    yes i did, no highlight link or whatever you said came up
  • Options
    where is your forum? can you show me?
  • Options
    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.
  • Options
    let me try again, its on localhost so i cant
  • Options
    ok its working!! anyway to have it defaulty highlighted and a button to revert it? or is it just a option i change?
  • Options
    ithcyithcy New
    edited July 2006
    i can put that option into the next version... would not be difficult. it just saves resources this way.
  • Options
    yeah its just that highlighting will be a key part to the site and needs to either be always on ordefaulty on
  • Options
    i'll start working on it just for you :)
  • Options
    yay :P we love you itchy! (me and my invisible lovers)
  • Options
    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.