How to add F # syntax highlighting on a blog

I use blogger and I install Windows live writer, I do not know how to insert F # code.

I have installed several code shortcuts, none of which support ocaml or f #.

+5
source share
5 answers

Now I use VSPaste , a plugin for WLW, which can be "pasted from Visual Studio" and copy the colors of VS.

+10
source

Get the best syntax shortcut. Also, save your code in Github Gists and paste it into your blog. Thus, any code that Github can allocate can be distinguished.

[BTW, , , .]

+2

HubFS. , , , , .

+1

, , . , , F #. # ( ), F # langauge.

Since I usually use the format // commentin blog posts, and the lines are formatted in the same way as in C #, I did not have to make many changes. I only added a few F # statements (mainly since I need them). I also added the F # keywords that you can find in the language specification .

+1
source

Since F # is somehow based on ML - Olaml or ML highlighter can help in most cases (except, for example, the "//" comments).

+1
source

All Articles