Tabs in [ CODE ] tag

  • Is there a way to get tabs to indent properly in a CODE tag?

    Perhaps there is some setting or something that I am not aware of? The only way I have found to format code in any reasonable manner is to replace all the tabs with spaces.

    Cheers!

  • try the code="sql" tag instead. The first tab will still be screwed up but successive ones should be ok.

    SELECT

    col1,

    col2,

    col3,

    col4

    FROM mytbl

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • There's a [ code = "sql ] tag to the left when you post. Use that. (spaces added so you can read this)

  • Steve Jones - Editor (7/15/2009)


    There's a [ code = "sql ] tag to the left when you post. Use that. (spaces added so you can read this)

    Yeah if only they'd fix it so that I didn't have to retype the double quotes it'd be great 😉

    -Luke.

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • Thanks for the information. It's better than just a plain old CODE tag, so I'll use that from now on!

    Cheers!

  • Luke L (7/16/2009)


    Steve Jones - Editor (7/15/2009)


    There's a [ code = "sql ] tag to the left when you post. Use that. (spaces added so you can read this)

    Yeah if only they'd fix it so that I didn't have to retype the double quotes it'd be great 😉

    -Luke.

    Luke,

    Fixed this yesterday, as it happens - you should be good to go now!

    Mel

    Mel HarbourProject ManagerRed Gate Software

  • Sweet!

    Thanks Mel!

    -Luke.

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • Still seems to have a problem with the first tab being indented differently (see below).

    Also, can it be fixed so that blank lines show?

    select

    col1,

    col2

    from

    MyTable

    select

    col3,

    col4

    from

    MyTable

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply