TeX - LaTeX Asked by Dmitri Nesteruk on July 6, 2021
I’m using MiKTeX via pandoc to make a book that contains C# and F# source code. The C# source code gets formatted just fine. How do I make sure the F# code gets formatted also?
Pandoc uses the syntax definitions from KDE's Kate editor. F# is included in that list. In fact, if you run pandoc --list-highlight-languages
, you'll find cs
(for C#) and fsharp
(for F#). Not sure how that inconsitency came to be.
So it should be sufficient to start your code blocks with ``` fsharp
to get proper highlighting. You may have to update pandoc to make sure fsharp support is included.
If you'd rather use minted than pandoc's built-in highlighter, checkout the minted
pandoc Lua filter.
Answered by tarleb on July 6, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP