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.

Code coloring...

edited April 2007 in Vanilla 1.0 Help
Hi, how can I change the default code tag format, I mean, I want to put the code in a div, with some color schemes, etc.etc. but I can't find where the code parsing is !!!!

Also, I want to highlight my code, for php and html syntax, but this addon: Code Prettify 1.0 but My website took deformed.....



  • Options
    Hi, you can change the code tag style in the vanilla.css on your themes' styles folder.
    #Comments code { ... ... }
  • Options
    I think Chimera wants syntax highlighting of things inside code tags. If you want that, and the Code Prettify extension doesn't work for you, I'd ask for support in the Code Prettify discussion, or try to modify the extension yourself. Vanilla itself doesn't do any parsing of things inside the code tags (as far as I know).
  • Options
    I try the Code Prettify and it can't work with Comment Links, I think it may be have a conflict with Comment links.
  • Options
    Ironically, they are both my extensions!

    Yes, they don't work with each other because they fight each other for the javascript onload event. I have this fixed in the next version of CommentLinks which should be out soon.

    The code prettify doesn't work well in I.E. 7, which ignores the newlines in the code block. Since IE7 still ignores white-space: pre; in CSS, you might be able to fix this by adding <pre> tags around the code block. I will look into getting them added automatically in the next version.
This discussion has been closed.