mirror of
https://github.com/mfontanini/presenterm.git
synced 2025-05-05 07:23:00 +00:00
feat: add julia language highlighting and execution support
This commit is contained in:
parent
94ce0a9225
commit
910c9cbe84
@ -702,6 +702,7 @@
|
||||
"Java",
|
||||
"JavaScript",
|
||||
"Json",
|
||||
"Julia",
|
||||
"Kotlin",
|
||||
"Latex",
|
||||
"Lua",
|
||||
|
@ -42,6 +42,11 @@ js:
|
||||
commands:
|
||||
- ["node", "$pwd/snippet.js"]
|
||||
hidden_line_prefix: "/// "
|
||||
julia:
|
||||
filename: snippet.jl
|
||||
commands:
|
||||
- ["julia", "$pwd/snippet.jl"]
|
||||
hidden_line_prefix: "/// "
|
||||
kotlin:
|
||||
filename: snippet.kts
|
||||
commands:
|
||||
|
@ -131,6 +131,7 @@ impl SnippetHighlighter {
|
||||
Java => "java",
|
||||
JavaScript => "js",
|
||||
Json => "json",
|
||||
Julia => "jl",
|
||||
Kotlin => "kt",
|
||||
Latex => "tex",
|
||||
Lua => "lua",
|
||||
|
@ -470,6 +470,7 @@ pub enum SnippetLanguage {
|
||||
Java,
|
||||
JavaScript,
|
||||
Json,
|
||||
Julia,
|
||||
Kotlin,
|
||||
Latex,
|
||||
Lua,
|
||||
@ -541,6 +542,7 @@ impl FromStr for SnippetLanguage {
|
||||
"java" => Java,
|
||||
"javascript" | "js" => JavaScript,
|
||||
"json" => Json,
|
||||
"julia" => Julia,
|
||||
"kotlin" => Kotlin,
|
||||
"latex" => Latex,
|
||||
"lua" => Lua,
|
||||
|
Loading…
x
Reference in New Issue
Block a user