Languages
Here is how you get started with the languages:
import React from 'react';
import ReactHighlightSyntax from 'react-highlight-syntax';
...
const App = () => (
return (
<ReactHighlightSyntax
language={'JavaScript'}
// ...props
/>
)
)
- Simply use TypeScript and choose the language you want to use. If you want to see how the language looks with your selected theme, check out Live Demo.
Supported languages
- Properties
- 1CEnterprise
- ARMAssembly
- AVRAssembly
- ActionScript
- Ada
- AngelScript
- ApacheAccessLog
- ApacheConfig
- AppleScript
- ArcGISArcade
- Arduino
- AsciiDoc
- AspectJ
- AugmentedBackusNaurForm
- AutoHotkey
- AutoIt
- Awk
- BASIC
- BackusNaurForm
- Bash
- BatchFile(DOS)
- Brainfuck
- C
- C#
- C++
- CAL
- CMake
- CSP
- CSS
- CacheObjectScript
- CapnProto
- Ceylon
- Clean
- Clojure
- ClojureREPL
- CoffeeScript
- Coq
- Crystal
- D
- DNSZone
- Dart
- Delphi
- DeviceTree
- Diff
- Django
- Dockerfile
- Dust
- ERB(EmbeddedRuby)
- Elixir
- Elm
- Erlang
- ErlangREPL
- ExcelFormulae
- ExtendedBackusNaurForm
- F#
- FIX
- Flix
- Fortran
- Gcode(ISO6983)
- GAMS
- GAUSS
- GLSL
- GML
- Gherkin
- Go
- Golo
- Gradle
- GraphQL
- Groovy
- HAML
- HSP
- HTML
- HTTP
- Handlebars
- Haskell
- Haxe
- Hy
- INI
- IRPF90
- ISBL
- Inform7
- IntelX86Assembly
- JBossCLI
- JSON
- Java
- JavaScript
- Julia
- JuliaREPL
- Kotlin
- LDIF
- LLVMIR
- LSL(LindenScriptingLanguage)
- LaTeX
- Lasso
- Leaf
- Less
- Lisp
- LiveCode
- LiveScript
- Lua
- MEL
- MIPSAssembly
- Makefile
- Markdown
- Matlab
- Maxima
- Mercury
- MicrotikRouterOSScript
- Mizar
- Mojolicious
- Monkey
- MoonScript
- N1QL
- NSIS
- NestedText
- NginxConfig
- Nim
- Nix
- NodeREPL
- OCaml
- ObjectiveC
- OpenSCAD
- OracleRulesLanguage
- Oxygene
- PHP
- PHPTemplate
- PLpgSQL
- PacketFilterConfig
- Parser3
- Perl
- PlainText
- Pony
- PostgreSQL
- PowerShell
- Processing
- Prolog
- ProtocolBuffers
- Puppet
- PureBASIC
- Python
- PythonREPL
- PythonProfiler
- Q
- QML
- R
- ReasonML
- RenderManRIB
- RenderManRSL
- Roboconf
- Ruby
- Rust
- SAS
- SCSS
- SML(StandardML)
- SQF
- SQL
- STEPPart21
- Scala
- Scheme
- Scilab
- ShellSession
- Smali
- Smalltalk
- Stan
- Stata
- Stylus
- SubUnit
- Swift
- TOML
- TP
- TaggerScript
- Tcl
- TestAnythingProtocol
- Thrift
- Twig
- TypeScript
- VBScript
- VBScriptInHTML
- VHDL
- Vala
- Verilog
- VimScript
- VisualBasicNET
- WebAssembly
- WolframLanguage
- Wren
- X++
- XL
- XML
- XQuery
- YAML
- Zephir
- Crmsh
- Dsconfig