mirror of
https://github.com/mfontanini/presenterm.git
synced 2026-09-01 23:33:21 -06:00
Add support for code highlighting and execution for F#
This commit is contained in:
parent
b3a1c790cf
commit
2ec3a25044
@ -3,7 +3,7 @@
|
||||
Code highlighting is supported for the following languages:
|
||||
|
||||
| Language | Execution support |
|
||||
| -----------|-------------------|
|
||||
|------------|-------------------|
|
||||
| ada | |
|
||||
| asp | |
|
||||
| awk | |
|
||||
@ -24,6 +24,7 @@ Code highlighting is supported for the following languages:
|
||||
| elm | |
|
||||
| erlang | |
|
||||
| fish | ✓ |
|
||||
| F# | ✓ |
|
||||
| go | ✓ |
|
||||
| haskell | ✓ |
|
||||
| HTML | |
|
||||
|
||||
@ -129,3 +129,8 @@ csharp:
|
||||
commands:
|
||||
- ["dotnet-script", "$pwd/snippet.cs"]
|
||||
hidden_line_prefix: "/// "
|
||||
fsharp:
|
||||
filename: snippet.fsx
|
||||
commands:
|
||||
- ["dotnet", "fsi", "$pwd/snippet.fsx"]
|
||||
hidden_line_prefix: "/// "
|
||||
|
||||
@ -124,6 +124,7 @@ impl SnippetHighlighter {
|
||||
Erlang => "erl",
|
||||
File => "txt",
|
||||
Fish => "fish",
|
||||
FSharp => "fsx",
|
||||
Go => "go",
|
||||
GraphQL => "graphql",
|
||||
Haskell => "hs",
|
||||
|
||||
@ -508,6 +508,7 @@ pub enum SnippetLanguage {
|
||||
Erlang,
|
||||
File,
|
||||
Fish,
|
||||
FSharp,
|
||||
Go,
|
||||
GraphQL,
|
||||
Haskell,
|
||||
@ -583,6 +584,7 @@ impl FromStr for SnippetLanguage {
|
||||
"erlang" => Erlang,
|
||||
"file" => File,
|
||||
"fish" => Fish,
|
||||
"fsharp" => FSharp,
|
||||
"go" => Go,
|
||||
"graphql" => GraphQL,
|
||||
"haskell" => Haskell,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user