JournalHome - Support

About Me

Welcome to JournalHome.com's support pages. Here you should find all the information you need about updating your blog.
If you don’t find something then simply send us a message and we will not rest until your issue is resolved.


Home | Profile | Archives | Friends

Added GeSHi - Generic Syntax Highlighter - 9:40 PM, 2/9/2012



I added a new shortcode tag using GeSHi

You can now use the shortcode [code:lang] or [code language='lang']

For example you can use the SQL language, ([code:sql])

  1. --
  2. -- SQL example for GeSHi
  3. --
  4.  
  5. DROP TABLE IF EXISTS foo;
  6. CREATE TABLE foo (
  7. id INT(11) NOT NULL AUTO_INCREMENT,
  8. characters INT(11) DEFAULT '0',
  9. time_taken DOUBLE DEFAULT NULL,
  10. language_used VARCHAR(100) DEFAULT NULL,
  11. SOURCE text,
  12. time_highlighted datetime DEFAULT NULL,
  13. PRIMARY KEY (id)
  14. ) TYPE=MyISAM

There is a comprehensive list of languages available, but most of the basic languages are included.

Share |


Technorati Tags: ,
Filed under: ,

- 1:17 PM, 11/4/2012

Way cool! Some very valid points! I appreciate you writing
this write-up and the rest of the website is very good.

Posted by Tod
Share and enjoy
  • Digg
  • del.icio.us
  • DZone
  • Netvouz
  • NewsVine
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb
Last Page Next Page