Jump to content
hopeofglory

Posting Sql Scripts

Recommended Posts

hopeofglory

Hi All

 

I need help from anyone who can assist with this requests. I am posting some useful SQL scripts on my blogg but not sure how to get the scripts to retain it's coloring as it would appear on a SQL script screen.

 

When I paste the scripts in a new post, it looses its formatting.

 

Is there a plugin that can help with this.

 

Many thanks

Isaac

Share this post


Link to post
Share on other sites
Danny

Hi,

 

When adding any code to your post/page if you wish to retain its correct format, then you need to use either the:

<pre>...</pre>

or use the the PageLines shortcode

 

[pl_codebox]...[/pl_codebox]

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hopeofglory

Hi Danny

 

What I meant was if I have a SQL script I want to add to a post, how can i get the script to appear with the appropriate color for instance if I copy this script "http://www.sysads.co.uk/2012/12/sql-script-to-backup-all-databases-on-sql-instance%E2%80%8F/" to my post, I loose the formatting.

 

How can i retain that formatting.

 

Thanks

Isaac

Share this post


Link to post
Share on other sites
hopeofglory

Thanks Simon_P, will check this out :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×