5

Highlight HTML/SQL templates in F#

 3 years ago
source link: https://marketplace.visualstudio.com/items?itemName=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
Visual Studio Code>Other>Highlight HTML/SQL templates in F#New to Visual Studio Code? Get it now.

Highlight HTML/SQL templates in F#

Syntax highlighting for template strings in F#
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.

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

Example

Categories

More Info

Version 1.0.0 Released on 8/21/2021, 4:30:12 AM Last updated
8/26/2021, 11:17:16 AM
Publisher Alfonso Garcia-Caro Unique Identifier alfonsogarciacaro.vscode-template-fsharp-highlight Report Report Abuse

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK