Simple PrismJS
Simple PrismJS Syntax Highlighter
<pre> <code> (Not Single)
Usage: <pre><code>code block</code></pre>
<h3>Welcome to the real-time HTML editor!</h3>
<p>Type HTML in the textarea above, and it will magically appear in the frame below.</p>
Only <code>
Usage: <code>code block</code>
<h3>Welcome to the real-time HTML editor!</h3>
<p>Type HTML in the textarea above, and it will magically appear in the frame below.</p>
Pre (Single Pretext)
<h3>Welcome to the real-time HTML editor!</h3> <p>Type HTML in the textarea above, and it will magically appear in the frame below.</p>
Pre (Single Pretext) + lang="js"
Usage: <pre lang="js">code block</pre>
if (window.addEventListener) {
window.addEventListener("load", downloadJSAtOnload, false);
} else if (window.attachEvent) {
window.attachEvent("onload", downloadJSAtOnload);
} else {
window.onload = downloadJSAtOnload
};
Disabled Syntax Highlighter
Usage: <pre lang="disabled">code block</pre>
if (window.addEventListener) {
window.addEventListener("load", downloadJSAtOnload, false);
} else if (window.attachEvent) {
window.attachEvent("onload", downloadJSAtOnload);
} else {
window.onload = downloadJSAtOnload
};
More Themes
Supported Languages
This is the list of all 202 languages currently supported by Prism, with
their corresponding alias, to use in place of xxxx
in the language-xxxx
(or lang-xxxx
) class:
- Markup -
markup
,html
,xml
,svg
,mathml
- CSS -
css
- C-like -
clike
- JavaScript -
javascript
,js
- ABAP -
abap
- Augmented Backus–Naur form -
abnf
- ActionScript -
actionscript
- Ada -
ada
- ANTLR4 -
antlr4
,g4
- Apache Configuration -
apacheconf
- APL -
apl
- AppleScript -
applescript
- AQL -
aql
- Arduino -
arduino
- ARFF -
arff
- AsciiDoc -
asciidoc
,adoc
- 6502 Assembly -
asm6502
- ASP.NET (C#) -
aspnet
- AutoHotkey -
autohotkey
- AutoIt -
autoit
- Bash -
bash
,shell
- BASIC -
basic
- Batch -
batch
- BBcode -
bbcode
- Bison -
bison
- Backus–Naur form -
bnf
,rbnf
- Brainfuck -
brainfuck
- BrightScript -
brightscript
- Bro -
bro
- C -
c
- C# -
csharp
,cs
,dotnet
- C++ -
cpp
- CIL -
cil
- CoffeeScript -
coffeescript
,coffee
- CMake -
cmake
- Clojure -
clojure
- Crystal -
crystal
- Content-Security-Policy -
csp
- CSS Extras -
css-extras
- D -
d
- Dart -
dart
- Diff -
diff
- Django/Jinja2 -
django
,jinja2
- DNS zone file -
dns-zone-file
,dns-zone
- Docker -
docker
,dockerfile
- Extended Backus–Naur form -
ebnf
- Eiffel -
eiffel
- EJS -
ejs
- Elixir -
elixir
- Elm -
elm
- Embedded Lua templating -
etlua
- ERB -
erb
- Erlang -
erlang
- F# -
fsharp
- Firestore security rules -
firestore-security-rules
- Flow -
flow
- Fortran -
fortran
- FreeMarker Template Language -
ftl
- G-code -
gcode
- GDScript -
gdscript
- GEDCOM -
gedcom
- Gherkin -
gherkin
- Git -
git
- GLSL -
glsl
- GameMaker Language -
gml
,gamemakerlanguage
- Go -
go
- GraphQL -
graphql
- Groovy -
groovy
- Haml -
haml
- Handlebars -
handlebars
- Haskell -
haskell
,hs
- Haxe -
haxe
- HCL -
hcl
- HTTP -
http
- HTTP Public-Key-Pins -
hpkp
- HTTP Strict-Transport-Security -
hsts
- IchigoJam -
ichigojam
- Icon -
icon
- Inform 7 -
inform7
- Ini -
ini
- Io -
io
- J -
j
- Java -
java
- JavaDoc -
javadoc
- JavaDoc-like -
javadoclike
- Java stack trace -
javastacktrace
- Jolie -
jolie
- JQ -
jq
- JSDoc -
jsdoc
- JS Extras -
js-extras
- JS Templates -
js-templates
- JSON -
json
- JSONP -
jsonp
- JSON5 -
json5
- Julia -
julia
- Keyman -
keyman
- Kotlin -
kotlin
- LaTeX -
latex
,tex
,context
- Latte -
latte
- Less -
less
- LilyPond -
lilypond
,ly
- Liquid -
liquid
- Lisp -
lisp
,emacs
,elisp
,emacs-lisp
- LiveScript -
livescript
- LOLCODE -
lolcode
- Lua -
lua
- Makefile -
makefile
- Markdown -
markdown
,md
- Markup templating -
markup-templating
- MATLAB -
matlab
- MEL -
mel
- Mizar -
mizar
- Monkey -
monkey
- MoonScript -
moonscript
,moon
- N1QL -
n1ql
- N4JS -
n4js
,n4jsd
- Nand To Tetris HDL -
nand2tetris-hdl
- NASM -
nasm
- NEON -
neon
- nginx -
nginx
- Nim -
nim
- Nix -
nix
- NSIS -
nsis
- Objective-C -
objectivec
- OCaml -
ocaml
- OpenCL -
opencl
- Oz -
oz
- PARI/GP -
parigp
- Parser -
parser
- Pascal -
pascal
,objectpascal
- Pascaligo -
pascaligo
- PC-Axis -
pcaxis
,px
- Perl -
perl
- PHP -
php
- PHPDoc -
phpdoc
- PHP Extras -
php-extras
- PL/SQL -
plsql
- PowerShell -
powershell
- Processing -
processing
- Prolog -
prolog
- .properties -
properties
- Protocol Buffers -
protobuf
- Pug -
pug
- Puppet -
puppet
- Pure -
pure
- Python -
python
,py
- Q (kdb+ database) -
q
- QML -
qml
- Qore -
qore
- R -
r
- React JSX -
jsx
- React TSX -
tsx
- Ren'py -
renpy
- Reason -
reason
- Regex -
regex
- reST (reStructuredText) -
rest
- Rip -
rip
- Roboconf -
roboconf
- Robot Framework -
robotframework
,robot
- Ruby -
ruby
,rb
- Rust -
rust
- SAS -
sas
- Sass (Sass) -
sass
- Sass (Scss) -
scss
- Scala -
scala
- Scheme -
scheme
- Shell session -
shell-session
- Smalltalk -
smalltalk
- Smarty -
smarty
- Solidity (Ethereum) -
solidity
- Soy (Closure Template) -
soy
- SPARQL -
sparql
,rq
- Splunk SPL -
splunk-spl
- SQF: Status Quo Function (Arma 3) -
sqf
- SQL -
sql
- Stylus -
stylus
- Swift -
swift
- TAP -
tap
- Tcl -
tcl
- Textile -
textile
- TOML -
toml
- Template Toolkit 2 -
tt2
- Turtle -
turtle
,trig
- Twig -
twig
- TypeScript -
typescript
,ts
- T4 Text Templates (C#) -
t4-cs
,t4
- T4 Text Templates (VB) -
t4-vb
- T4 templating -
t4-templating
- Vala -
vala
- VB.Net -
vbnet
- Velocity -
velocity
- Verilog -
verilog
- VHDL -
vhdl
- vim -
vim
- Visual Basic -
visual-basic
,vb
- WebAssembly -
wasm
- Wiki markup -
wiki
- Xeora -
xeora
,xeoracube
- Xojo (REALbasic) -
xojo
- XQuery -
xquery
- YAML -
yaml
,yml
- Zig -
zig
Couldn't find the language you were looking for? Request it!
Comments
Post a Comment
Bila Ada posting yang kurang, atau error atau yang lainnya, silahkan tinggalkan komentar agar artikel/post di perbaiki.
Jangan Lupa Cek Box "Notify Me" agar tahu komentar kamu dibalas oleh saya.
If there are any posts that are missing, or error or anything else, please leave a comment for the article / post to be fixed.
Do not Forget Check Box "Notify Me" to know our comments replied by me.