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