C # Syntax for BlogSpot Blogging

I am looking for syntax code formatting format for my blog on BlogSpot. I tried several today, but everyone wants to include <style> tags or link to a stylesheet. I am looking for one that is perfect for code segments and includes an inline style. Any suggestions?

+6
c # syntax-highlighting blogs blogspot
source share
6 answers

You can always copy extra style bytes, for example, Pygments highlighter (which is really great) into the <head> your blog. You do not even need to install any software; just copy the HTML from the online service.

+3
source share

The project mentioned above has moved:
http://alexgorbatchev.com/wiki/SyntaxHighlighter

Blogger instructions for using it:
mlawire.blogspot.com/2009/07/blogger-syntax-highlighting.html

+7
source share

I created the Free Online C # Syntax Syntax , which has exactly what you need - to embed the necessary CSS styles. All you have to do is check the "Nested Styles" checkbox, paste the C # code and click the Deploy button. You can find it on your blog .

+3
source share
+2
source share

I am using the SyntaxHighlighter Javascript Library. It is very easy to add and use.

here's more info on this that might help others:

http://www.craftyfella.com/2010/01/syntax-highlighting-with-blogger-engine.html

+1
source share

I had this exact problem.

I wrote an image formatter for Pygments (included in the main distribution).

Please do not hate me for such an abomination, but yes, it highlights the highlighted code as png or jpg or whatever. Thus, it has no external dependencies, etc.

 pygmentize -f png -o mysource.png mysource.cs 

I try to make sure that I always refer to the text version of the source for copying people.

0
source share

All Articles