how to add code snippets to posts

Discussion in 'CSS' started by alexuser333, Jun 29, 2010.

  1. #1
    i see in many posts that code snippets are confined by small window images and syntax coloring is added to the code. How to do that?
     
    alexuser333, Jun 29, 2010 IP
  2. bvraghav

    bvraghav Member

    Messages:
    123
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #2
    first thing
    click on go advanced, in stead of post quick reply

    next you will find the advanced formatting buttons.

    now you can play with them and generate the code within [ code ] tags to generate a code like this

    essentially all text contained within [ code ] and [ /code ]  tags of course without blanks display like this 
    Code (markup):
    explore a bit more... cheers
     
    bvraghav, Jun 30, 2010 IP
  3. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #3
    yes this [ code ] and [ /code ] will apply only if it supports bb tags.
     
    karthimx, Jul 1, 2010 IP