• I’m not sure if this is the best forum for my question, but have to start somewhere.

    I currently have a blog at ‘edstevensdba.wordpress.com’. I am looking at giving it a complete makeover and moving it to my own domain. To that end, I have installed xammp on my pc and downloaded/installed WordPress to start doing some offline work before making a final decision about getting a host and registering a domain name.

    I make heavy use of the ‘sourcecode’ tag, as can be seen, for example, at https://edstevensdba.wordpress.com/category/storage-management/.

    Now, when working at my localhost version, whenever I create a post with a block of code in the [sourcecode .. tag, it does not render as expected. Instead, the [sourcecode] [/sourcecode] tags themselves are displayed as normal text. I even exported my entire wordpress.com site and imported it into my localhost site, and get the same result.

    Any clues or ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • On stand-alone sites like the one you have installed on your local machine, shortcodes are implemented with the help of plugins. I haven’t used WordPress.com sites but I am assuming that the [source_code] tag was available by default there. If you want it to work on your new site then you need to find and install a plugin that offers this shortcode (or something similar).

    Thread Starter edstevensdba

    (@edstevensdba)

    WP Gurus –

    That was the lead I needed.

    I went back to my plugins page, add new, searched on ‘sourcecode’. Reviewed likely candidates (based on what I had read in other forum posts while trying to self-research this) and ended up installing ‘Syntax Highlighter Evolved’. That immediately corrected all of my posts, restoring the source code syntax highlighting.

    Thanks a bunch for the quick response.

    Great!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘help with sourcecode tag’ is closed to new replies.