ngocmanhnguyen posted on March 20, 2010 21:04

If you usually using blog (Windows Live, Blogger, Wordpress, TypePad...) and you're a developer you will need a very useful plugin for your blog is SyntaxHighlighter.

Customize your Options:

How to Use

1. Your Blog Space Settings

1. Upload the SyntaxHighlighter files on your weblog space.

  • dp.SyntaxHighlighter/Scripts
  • dp.SyntaxHighlighter/Styles

2. Add JavaScript and CSS to your weblog page.

  1. <link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>  
  2. <script language="javascript" src="Scripts/shCore.js"></script>  
  3. <script language="javascript" src="Scripts/shBrushCSharp.js"></script>  
  4. <script language="javascript">  
  5. window.onload = function() {   
  6.     dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';   
  7.     dp.SyntaxHighlighter.HighlightAll('code');   
  8. };   
  9.  </script>  

shCore.js is necessary. You can add only other shBrush{language name}.js that needed.

2. Windows Live Writer Settings

  1. Install the SyntaxHighlighter for Windows Live Writer plugin.
  2. Update weblog style. You can update style from menu "Weblog"-"Edit Weblog Settings..." and "Editing" tab.

3. How to Insert Code

  1. You can insert code from sidebar or menubar.

Supports language: C, C++, C#, CSS, Delphi, HTML, Java, JavaScript, PHP, Pascal, Python, Ruby, SQL, VB, VB.NET, XML, XSLT.

Download the last version here.

Goodluck! ;))

kick it on DotNetKicks.com

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Page List

    Calendar

    «  September 2010  »
    MoTuWeThFrSaSu
    303112345
    6789101112
    13141516171819
    20212223242526
    27282930123
    45678910
    View posts in large calendar

    Recent Comments

    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010 SFI.VN Team