Thursday 13 January 2011

How to get Code snippets Highlightsd within Blogger.com

This is an article i found on Getting Code Syntax Highlighting to work so i can type code straight into the "Edit HTML" WYSIWYG editor and it will look like:


public static bool IsItPretty(){
while(iHaveCode = true){
makeMyCode.Pretty = true;
return true;
}
return false;
}


Or i can paste it in from Visual Studio and it will look like:



foreach (DictionaryEntry entry in updates)
{ ArrayList newEntry = (ArrayList)entry.Value;
response.StructuredData.Add(newEntry[0], newEntry[1]);
response.StructuredData.Remove(entry.Key);
}

No comments:

Post a Comment