Syntax highlighting for F#

Issue #318 invalid
Tomas Linhart
created an issue


would be possilbe add syntax highlighting for language like F#?

I wanna start project here and I would welcome it.

More color profiles would be welcome also, because current are barely to see.


Comments (8)

  1. Eirik Stavem


    Seems there is currently no F# lexer available for pygments, the highlighter we use:

    As soon as one is available - or someone who knows F# well writes one ;) - we'll add it.

    Do you mean the color profile for the code highlighter? If so, you can change that by going to the Admin-tab for your repository, and under Appearance Settings you can change both highlight style and tab width.

    Thanks for your report!

  2. Tomas Linhart reporter

    Thanks for reply.

    I checked Pygments and it's support OCaml which got almost same syntax as F#. OCaml lexer was found there , you can just add support for these extensions fs/.fsx/.fsi. Of course OCaml highlighter isn't best, but it's better than nothing. Some keywords aren't used by OCaml, but they can be easy added. There is F# highlighting for MonoDeveloper which covers all keywords. . I can try create F# lexer for Pygments unfortunately, I don't know how to test it if it works.

    Yes, I mean that. Thanks. I found it now.

  3. Log in to comment