6

GitHub - alfonsogarciacaro/vscode-template-fsharp-highlight: Highlight HTML/CSS/...

 3 years ago
source link: https://github.com/alfonsogarciacaro/vscode-template-fsharp-highlight
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Syntax highlighting for template strings in F#

VS Code extension that highlights HTML in F# interpolated strings with the following format.

html $"""<h1>Hello World!</h1>"""

You need to declare the html/svg/sql functions by yourself. If you need to do some transformation, make a function accepting FormattableString:

let sql (s: FormattableString) = ...

If you just want to trigger highlighting, use an identity function:

let svg (s: string) = s

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK