Jump to content


Photo
- - - - -

Posting Sql Scripts


Best Answer Simon_P , 12 December 2012 - 09:55 PM

http://wordpress.org...gins/wp-syntax/ this plugin will do mysql, there are a few there on the wp repo.

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 12 December 2012 - 11:58 AM

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



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 13192 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 12 December 2012 - 12:40 PM

Hi,

 

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

Please Login or Register to see this Hidden Content

or use the the PageLines shortcode

 

Please Login or Register to see this Hidden Content



#3 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 12 December 2012 - 02:26 PM

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 "

Please Login or Register to see this Hidden Content

" to my post, I loose the formatting.

 

How can i retain that formatting.

 

Thanks

Isaac



#4 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 December 2012 - 09:55 PM   Best Answer

Please Login or Register to see this Hidden Content

this plugin will do mysql, there are a few there on the wp repo.



#5 hopeofglory

hopeofglory

    Super Member

  • Members
  • 108 posts

Posted 13 December 2012 - 11:00 AM

Thanks Simon_P, will check this out :)