Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Code Box help?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35686
    Odd_E
    Member

    I need help disabling a html tags inside a div. It’s so that I can make a code box like the one here.

    So that if I typed into

    it would appear with the “<" and ">” intact, and not affecting to core html at all. Is it some Javascript function, or a CSS feature. Thanks for your help in advance.

    #92942
    Billy
    Participant

    You can do this by wrapping <pre><code>Around the text</code></pre>

    #93019
    Danjit
    Member

    This site and many others use Prettify – http://code.google.com/p/google-code-prettify/ – It should do what you want and has customisable styles.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.