Enum pagetop_hljs::HljsLang
source · pub enum HljsLang {
Show 93 variants
Bash,
C,
Cpp,
Csharp,
CSS,
Diff,
Go,
GraphQL,
HTML,
INI,
Java,
JavaScript,
JSON,
Kotlin,
Less,
Lua,
Makefile,
Markdown,
ObjectiveC,
Perl,
PHP,
PHPTemplate,
Plaintext,
Python,
PythonREPL,
R,
Ruby,
Rust,
SCSS,
ShellSession,
SQL,
Swift,
TOML,
TypeScript,
VisualBasicNET,
WebAssembly,
XML,
YAML,
ActionScript,
Ada,
Apache,
AppleScript,
Arduino,
ARMAssembly,
AsciiDoc,
AspectJ,
AutoHotkey,
AVRAssembly,
Awk,
BASIC,
Clojure,
ClojureREPL,
CMake,
CoffeeScript,
Crystal,
D,
Dart,
Delphy,
Django,
DNSZone,
Dockerfile,
DOS,
Elixir,
Elm,
ERB,
Erlang,
ErlangREPL,
Fortran,
Fsharp,
Handlebars,
Haskell,
HTTP,
Julia,
JuliaREPL,
LaTeX,
Lisp,
LLVMIR,
Matlab,
Nginx,
NodeREPL,
Ocaml,
PostgreSQL,
PowerShell,
Prolog,
Properties,
Scala,
Scheme,
Scilab,
Smalltalk,
Tcl,
Twig,
VBScript,
X86Asm,
}
Expand description
Supported coding languages.
Languages are represented by PascalCase enums within the code and are mapped to corresponding highlight.js language names.
use pagetop_hljs::HljsLang;
assert_eq!(HljsLang::CoffeeScript.to_string(), "coffeescript".to_string());
Variants§
Bash
C
Cpp
Csharp
CSS
Diff
Go
GraphQL
HTML
INI
Java
JavaScript
JSON
Kotlin
Less
Lua
Makefile
Markdown
ObjectiveC
Perl
PHP
PHPTemplate
Plaintext
Python
PythonREPL
R
Ruby
Rust
SCSS
ShellSession
SQL
Swift
TOML
TypeScript
VisualBasicNET
WebAssembly
XML
YAML
Enum variants for languages ranging from Bash
to YAML
are all preloaded in the
common mode. To include additional languages, use the default core mode.
ActionScript
Ada
Apache
AppleScript
Arduino
ARMAssembly
AsciiDoc
AspectJ
AutoHotkey
AVRAssembly
Awk
BASIC
Clojure
ClojureREPL
CMake
CoffeeScript
Crystal
D
Dart
Delphy
Django
DNSZone
Dockerfile
DOS
Elixir
Elm
ERB
Erlang
ErlangREPL
Fortran
Fsharp
Handlebars
Haskell
HTTP
Julia
JuliaREPL
LaTeX
Lisp
LLVMIR
Matlab
Nginx
NodeREPL
Ocaml
PostgreSQL
PowerShell
Prolog
Properties
Scala
Scheme
Scilab
Smalltalk
Tcl
Twig
VBScript
X86Asm
Trait Implementations§
source§impl PartialEq for HljsLang
impl PartialEq for HljsLang
impl Copy for HljsLang
impl Eq for HljsLang
impl StructuralPartialEq for HljsLang
Auto Trait Implementations§
impl Freeze for HljsLang
impl RefUnwindSafe for HljsLang
impl Send for HljsLang
impl Sync for HljsLang
impl Unpin for HljsLang
impl UnwindSafe for HljsLang
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.