[轉]Haroopad Markdown 編輯器代碼文法高亮支援

來源:互聯網
上載者:User

標籤:swift   ica   parse   pretty   int   lis   glsl   assembler   number   

代碼文法高亮

書寫格式為:

` ` ` 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
參考
  1. Haroopad code block syntax
  2. Markdown syntax

http://blog.csdn.net/u013553529/article/details/50629055

[轉]Haroopad Markdown 編輯器代碼文法高亮支援

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.