[转]Haroopad Markdown 编辑器代码语法高亮支持
Posted aituming
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[转]Haroopad Markdown 编辑器代码语法高亮支持相关的知识,希望对你有一定的参考价值。
代码语法高亮
书写格式为:
` ` ` language_key
if (condition){
return true
}
` ` `
在 ` ` ` (三个反引号)之间的是代码,其中language_key
的值,请参考 支持的语言和缩写标记
例如,将language_key
用JavaScript
替换,效果如下:
if (condition){
return true
}
支持的语言和缩写标记
Language | language_key |
---|---|
1C | 1c |
ActionScript | actionscript |
Apache | apache |
AppleScript a | pplescript |
AsciiDoc | asciidoc |
AspectJ | asciidoc |
AutoHotkey | autohotkey |
AVR Assembler | avrasm |
Axapta | axapta |
Bash | bash |
BrainFuck | brainfuck |
Cap’n Proto | capnproto |
Clojure REPL | clojure |
Clojure | clojure |
CMake | cmake |
CoffeeScript | coffeescript |
C++ | cpp |
C# c | s |
CSS | css |
D | d |
Dart | d |
Delphi | delphi |
Diff | diff |
Django | django |
DOS .bat | dos |
Dust | dust |
Elixir | elixir |
ERB (Embedded Ruby) | erb |
Erlang REPL | erlang-repl |
Erlang | erlang |
FIX | fix |
F# | fsharp |
G-code (ISO 6983) | gcode |
Gherkin | gherkin |
GLSL | glsl |
Go | go |
Gradle | gradle |
Groovy | groovy |
Haml | haml |
Handlebars | handlebars |
Haskell | haskell |
Haxe | haxe |
HTTP | http |
Ini file | ini |
Java | java |
javascript | javascript |
JSON j | son |
Lasso | lasso |
Less | less |
Lisp | lisp |
LiveCode | livecodeserver |
LiveScript | livescript |
Lua | lua |
Makefile | makefile |
Markdown | markdown |
Mathematica | mathematica |
Matlab | matlab |
MEL (Maya Embedded Language) | mel |
Mercury | mercury |
Mizar | mizar |
Monkey | monkey |
nginx | nginx |
Nimrod | nimrod |
Nix | nix |
NSIS | nsis |
Objective C | objectivec |
OCaml | ocaml |
Oxygene | oxygene |
Parser 3 | parser3 |
Perl | perl |
php | php |
PowerShell | powershell |
Processing | processing |
Python’s profiler output | profile |
Protocol Buffers | protobuf |
Puppet | puppet |
Python | python |
Q | q |
R | r |
RenderMan RIB | rib |
Roboconf | roboconf |
RenderMan RSL | rsl |
Ruby | ruby |
Oracle Rules Language | ruleslanguage |
Rust | rust |
Scala | scala |
Scheme | scheme |
Scilab | scilab |
SCSS | scss |
Smali | smali |
SmallTalk | smalltalk |
SML | sml |
SQL | sql |
Stata | stata |
STEP Part 21 (ISO 10303-21) | step21 |
Stylus | stylus |
Swift | swift |
Tcl | tcl |
TeX | tex |
Thrift | thrift |
Twig | twig |
TypeScript | typescript |
Vala | vala |
VB.NET | vbnet |
VBScript in html | vbscript-html |
VBScript | vbscript |
Verilog | verilog |
VHDL | vhdl |
Vim Script | vim |
Intel x86 Assembly | x86asm |
XL | xl |
XML, HTML | xml |
参考
http://blog.csdn.net/u013553529/article/details/50629055
以上是关于[转]Haroopad Markdown 编辑器代码语法高亮支持的主要内容,如果未能解决你的问题,请参考以下文章