Displaying SQL Server Syntax in WordPress

  • Anybody have a good plugin or way to display SQL Server syntax in WordPress? Images are great, but I think allowing people to copy and paste is much better. I have found some plugins, but the colors aren't as they should be. Any thoughts?

    Jared
    CE - Microsoft

  • I'm using wordpress.com and there you just need to surround your code with

    [sourcecode language=sql]

    SELECT SomeColumn FROM SomeTable

    [/sourcecode]

    and everything displays just fine, with copy,print,view source and help buttons.

    You can see it at spaghettidba.com.

    Is this what you're after?

    -- Gianluca Sartori

  • Gianluca Sartori (1/10/2012)


    I'm using wordpress.com and there you just need to surround your code with

    [sourcecode language=sql]

    SELECT SomeColumn FROM SomeTable

    [/sourcecode]

    and everything displays just fine, with copy,print,view source and help buttons.

    You can see it at spaghettidba.com.

    Is this what you're after?

    Yeah, that is nice, but I was hoping to get a color scheme that mimics SSMS. Maybe I will have my brother build a plug-in for that 🙂

    Jared
    CE - Microsoft

  • Use Windows Live writer.

    You can publish directly to WordPress from there, and it keeps all of the formatting\colours

    http://explore.live.com/windows-live-essentials-other-programs?T1=t5

  • _Beetlejuice (1/10/2012)


    Use Windows Live writer.

    You can publish directly to WordPress from there, and it keeps all of the formatting\colours

    http://explore.live.com/windows-live-essentials-other-programs?T1=t5

    Very interesting! I will check this out later tonight to see how it works. Thanks!

    Jared
    CE - Microsoft

  • SyntaxHighlighter plugin.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (1/10/2012)


    SyntaxHighlighter plugin.

    🙂 That's what I finally got. I didn't realize that the shortcodes are only built in through wordpress.com. Thanks Gail!

    Jared
    CE - Microsoft

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

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