I just found this nifty site: http://codeformatter.blogspot.se/
What it does is that it lets you paste code into a text box, which it then formats to something that you can copy/paste to your blog in order to have source code displayed in a nice way.
Here is an example:
Pretty nice right? Add a little syntax highlighting and we're all set.
What it does is that it lets you paste code into a text box, which it then formats to something that you can copy/paste to your blog in order to have source code displayed in a nice way.
Here is an example:
1: #include <stdio>
2: int main(int argc, char** argv)
3: {
4: std::cout << "Hello, world!" << std::endl;
5: return 0;
6: }
Pretty nice right? Add a little syntax highlighting and we're all set.
Kommentarer
Skicka en kommentar