Lexes code for Elixir's Makeup project using the syntect Rust library. More syntax definitions are included from two-face.
At the moment, 205 different syntaxes are supported. For a list of supported languages, see the documentation.
MakeupSyntect automatically registers those syntaxes in Makeup's registry (exceptions see below),
which allows them to be used in ExDoc and other projects using Makeup. The name to use when writing
markdown code blocks in ExDoc is shown in brackets in the MakeupSyntect.Syntaxes
module documentation.
Note that by default, the following syntaxes are disabled, as the existing Makeup lexers are considered to be better:
"elixir"
"erlang"
"html_eex"
We recommend you to use the :makeup_elixir
/ :makeup_erlang
/ :makeup_eex
packages instead.
To configure which languages to register for, the :register_for_languages
and :excluded_languages
configurations can be used.:
config :makeup_syntect,
register_for_languages: ["rust", "toml"], # default: :all
excluded_languages: [] # default: ["elixir", "erlang", "html_eex"]
The package can be installed by adding makeup_syntect
to your list of dependencies in mix.exs
:
def deps do
[
{:makeup_syntect, "~> 0.1"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/makeup_syntect.