1
0
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:
Michal Nebes 2025-06-20 16:32:55 +02:00
parent b3a1c790cf
commit 2ec3a25044
No known key found for this signature in database
GPG Key ID: 458D25C5D1034039
4 changed files with 10 additions and 1 deletions

View File

@ -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 | |

View File

@ -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: "/// "

View File

@ -124,6 +124,7 @@ impl SnippetHighlighter {
Erlang => "erl",
File => "txt",
Fish => "fish",
FSharp => "fsx",
Go => "go",
GraphQL => "graphql",
Haskell => "hs",

View File

@ -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,