MakeupSyntect.Syntaxes (makeup_syntect v0.1.0)

View Source

This module provides a list of supported syntax definitions.

For usage in ExDoc, use the name in brackets as the language of the code block, e.g.

```http_request_and_response
GET / HTTP/1.1
...
```
  • ARM Assembly (arm_assembly)
  • ASP (asp)
  • AWK (awk)
  • ActionScript (actionscript)
  • Ada (ada)
  • Apache Conf (apache_conf)
  • AppleScript (applescript)
  • AsciiDoc (Asciidoctor) (asciidoc_asciidoctor)
  • Assembly (x86_64) (assembly_x86_64)
  • Authorized Keys (authorized_keys)
  • Batch File (batch_file)
  • BibTeX (bibtex)
  • Bourne Again Shell (bash) (bourne_again_shell_bash)
  • C (c)
  • C# (c#)
  • C++ (c++)
  • CFML (cfml)
  • CFML Script (cfml_script)
  • CFML Script (Tags) (cfml_script_tags)
  • CMake (cmake)
  • CMake C Header (cmake_c_header)
  • CMake C++ Header (cmake_c++_header)
  • CMakeCache (cmakecache)
  • CMakeCommands (cmakecommands)
  • CSS (css)
  • Cabal (cabal)
  • Cargo Build Results (cargo_build_results)
  • Clojure (clojure)
  • CoffeeScript (coffeescript)
  • Comma Separated Values (comma_separated_values)
  • Command Help (command_help)
  • CpuInfo (cpuinfo)
  • Crontab (crontab)
  • Crystal (crystal)
  • D (d)
  • DMD Output (dmd_output)
  • Dart (dart)
  • Diff (diff)
  • Dockerfile (dockerfile)
  • Dockerfile (with bash) (dockerfile_with_bash)
  • DotENV (dotenv)
  • Elixir (elixir)
  • Elm (elm)
  • Elm Compile Messages (elm_compile_messages)
  • Elm Documentation (elm_documentation)
  • Email (email)
  • Erlang (erlang)
  • F# (f#)
  • Fish (fish)
  • Fortran (Fixed Form) (fortran_fixed_form)
  • Fortran (Modern) (fortran_modern)
  • Fortran Namelist (fortran_namelist)
  • GFortran Build Results (gfortran_build_results)
  • GLSL (glsl)
  • Git Attributes (git_attributes)
  • Git Commit (git_commit)
  • Git Common (git_common)
  • Git Config (git_config)
  • Git Ignore (git_ignore)
  • Git Link (git_link)
  • Git Log (git_log)
  • Git Mailmap (git_mailmap)
  • Git Rebase Todo (git_rebase_todo)
  • Go (go)
  • GraphQL (graphql)
  • Graphviz (DOT) (graphviz_dot)
  • Groff/troff (groff/troff)
  • Groovy (groovy)
  • HTML (html)
  • HTML (ASP) (html_asp)
  • HTML (EEx) (html_eex)
  • HTML (Erlang) (html_erlang)
  • HTML (Jinja2) (html_jinja2)
  • HTML (Rails) (html_rails)
  • HTML (Tcl) (html_tcl)
  • HTML (Twig) (html_twig)
  • HTTP Request and Response (http_request_and_response)
  • Haskell (haskell)
  • Highlight non-printables (highlight_non-printables)
  • INI (ini)
  • JQ (jq)
  • JSON (json)
  • JSON (Terraform) (json_terraform)
  • Java (java)
  • Java Properties (java_properties)
  • Java Server Page (JSP) (java_server_page_jsp)
  • JavaScript (javascript)
  • JavaScript (Babel) (javascript_babel)
  • JavaScript (Rails) (javascript_rails)
  • Javadoc (javadoc)
  • Jinja2 (jinja2)
  • Julia (julia)
  • Known Hosts (known_hosts)
  • Kotlin (kotlin)
  • LLVM (llvm)
  • LaTeX (latex)
  • LaTeX Log (latex_log)
  • Lean (lean)
  • Less (less)
  • Lisp (lisp)
  • Literate Haskell (literate_haskell)
  • LiveScript (livescript)
  • Lua (lua)
  • MATLAB (matlab)
  • Make Output (make_output)
  • Makefile (makefile)
  • Manpage (manpage)
  • Markdown (markdown)
  • MediaWiki (mediawiki)
  • MediawikerPanel (mediawikerpanel)
  • MemInfo (meminfo)
  • MultiMarkdown (multimarkdown)
  • NAnt Build File (nant_build_file)
  • NSIS (nsis)
  • Navigational Bar SV (navigational_bar_sv)
  • Nim (nim)
  • Ninja (ninja)
  • Nix (nix)
  • OCaml (ocaml)
  • OCamllex (ocamllex)
  • OCamlyacc (ocamlyacc)
  • Objective-C (objective-c)
  • Objective-C++ (objective-c++)
  • OpenMP (Fortran) (openmp_fortran)
  • PHP (php)
  • PHP Source (php_source)
  • Pascal (pascal)
  • Perl (perl)
  • Plain Text (plain_text)
  • PowerShell (powershell)
  • Private Key (private_key)
  • Protocol Buffer (protocol_buffer)
  • Protocol Buffer (TEXT) (protocol_buffer_text)
  • Puppet (puppet)
  • PureScript (purescript)
  • Python (python)
  • QML (qml)
  • R (r)
  • R Console (r_console)
  • Racket (racket)
  • Rd (R Documentation) (rd_r_documentation)
  • Rego (rego)
  • Regular Expression (regular_expression)
  • Regular Expressions (Elixir) (regular_expressions_elixir)
  • Regular Expressions (Javascript) (regular_expressions_javascript)
  • Regular Expressions (PHP) (regular_expressions_php)
  • Regular Expressions (Python) (regular_expressions_python)
  • Requirements.txt (requirements.txt)
  • Robot Framework (robot_framework)
  • Ruby (ruby)
  • Ruby Haml (ruby_haml)
  • Ruby Slim (ruby_slim)
  • Ruby on Rails (ruby_on_rails)
  • Rust (rust)
  • SCSS (scss)
  • SML (sml)
  • SQL (sql)
  • SQL (Rails) (sql_rails)
  • SSH Common (ssh_common)
  • SSH Config (ssh_config)
  • SSH Crypto (ssh_crypto)
  • SSHD Config (sshd_config)
  • Salt State (SLS) (salt_state_sls)
  • Sass (sass)
  • Scala (scala)
  • Shell-Unix-Generic (shell-unix-generic)
  • Solidity (solidity)
  • Strace (strace)
  • Stylus (stylus)
  • Svelte (svelte)
  • Swift (swift)
  • SystemVerilog (systemverilog)
  • TOML (toml)
  • Tcl (tcl)
  • TeX (tex)
  • Terraform (terraform)
  • TestBox (testbox)
  • Textile (textile)
  • Todo.txt (todo.txt)
  • TypeScript (typescript)
  • TypeScriptReact (typescriptreact)
  • Verilog (verilog)
  • VimHelp (vimhelp)
  • VimL (viml)
  • Vue Component (vue_component)
  • Vyper (vyper)
  • WGSL (wgsl)
  • XML (xml)
  • YAML (yaml)
  • Zig (zig)
  • camlp4 (camlp4)
  • commands-builtin-shell-bash (commands-builtin-shell-bash)
  • fstab (fstab)
  • gnuplot (gnuplot)
  • group (group)
  • hosts (hosts)
  • jsonnet (jsonnet)
  • log (log)
  • nginx (nginx)
  • orgmode (orgmode)
  • passwd (passwd)
  • reStructuredText (restructuredtext)
  • resolv (resolv)
  • syslog (syslog)
  • varlink (varlink)

Summary

Functions

Returns a list of all supported syntax definitions.

Functions

all()

Returns a list of all supported syntax definitions.

Returns a list of maps containing:

  • name: The name of the syntax (e.g. "HTML", "JavaScript")
  • file_extensions: List of file extensions (e.g. ["html", "htm"])

Example

iex> MakeupSyntect.Syntaxes.all()
[
  %{name: "Plain Text", extensions: ["txt"], codeblock_name: "plain_text"},
  %{name: "ASP", extensions: ["asa"], codeblock_name: "asp"},
  %{name: "HTML (ASP)", extensions: ["asp"], codeblock_name: "html_asp"},
  %{name: "ActionScript", extensions: ["as"], codeblock_name: "actionscript"}
  ...
]