mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-06 04:16:04 +03:00
initial latex support (#151)
This commit is contained in:
parent
59c3c61e5b
commit
d6364fa665
@ -735,6 +735,7 @@ At the moment, cheat.sh covers the 58 following programming languages (alphabeti
|
||||
|`js/` |JavaScript|✓ |✓ |✓ |✓ |
|
||||
|`julia/` |Julia |✓ | | |✓ |
|
||||
|`kotlin/` |Kotlin |✓ | | |✓ |
|
||||
|`latex/` |LaTeX |✓ | | |✓ |
|
||||
|`lisp/` |Lisp |✓ | | |✓ |
|
||||
|`lua/` |Lua |✓ | | |✓ |
|
||||
|`matlab/` |MATLAB |✓ | | |✓ |
|
||||
|
@ -870,4 +870,10 @@ class LearnGitAdapter(LearnXYAdapter):
|
||||
_filename = "git.html.markdown"
|
||||
_splitted = False
|
||||
|
||||
class LearnLatexAdapter(LearnXYAdapter):
|
||||
"Learn Nim in Y Minutes"
|
||||
prefix = "latex"
|
||||
_filename = "latex.html.markdown"
|
||||
_splitted = False
|
||||
|
||||
_ADAPTERS = {cls.prefix: cls() for cls in vars()['LearnXYAdapter'].__subclasses__()}
|
||||
|
@ -39,6 +39,7 @@ LEXER = {
|
||||
"js" : pygments.lexers.JavascriptLexer,
|
||||
"julia" : pygments.lexers.JuliaLexer,
|
||||
"kotlin" : pygments.lexers.KotlinLexer,
|
||||
"latex" : pygments.lexers.TexLexer,
|
||||
"lisp" : pygments.lexers.CommonLispLexer,
|
||||
"lua" : pygments.lexers.LuaLexer,
|
||||
"mathematica": pygments.lexers.MathematicaLexer,
|
||||
|
Loading…
Reference in New Issue
Block a user