highlighting 0.8.0 highlighting: ^0.8.0 copied to clipboard
Syntax highlighting for Dart with lots of languages and themes support.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add highlighting
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
highlighting: ^0.8.0
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:highlighting/highlighting_core.dart';
import 'package:highlighting/languages/1c.dart';
import 'package:highlighting/languages/abnf.dart';
import 'package:highlighting/languages/accesslog.dart';
import 'package:highlighting/languages/actionscript.dart';
import 'package:highlighting/languages/ada.dart';
import 'package:highlighting/languages/all.dart';
import 'package:highlighting/languages/angelscript.dart';
import 'package:highlighting/languages/apache.dart';
import 'package:highlighting/languages/applescript.dart';
import 'package:highlighting/languages/arcade.dart';
import 'package:highlighting/languages/arduino.dart';
import 'package:highlighting/languages/armasm.dart';
import 'package:highlighting/languages/asciidoc.dart';
import 'package:highlighting/languages/aspectj.dart';
import 'package:highlighting/languages/autohotkey.dart';
import 'package:highlighting/languages/autoit.dart';
import 'package:highlighting/languages/avrasm.dart';
import 'package:highlighting/languages/awk.dart';
import 'package:highlighting/languages/axapta.dart';
import 'package:highlighting/languages/bash.dart';
import 'package:highlighting/languages/basic.dart';
import 'package:highlighting/languages/bnf.dart';
import 'package:highlighting/languages/brainfuck.dart';
import 'package:highlighting/languages/c.dart';
import 'package:highlighting/languages/cal.dart';
import 'package:highlighting/languages/capnproto.dart';
import 'package:highlighting/languages/ceylon.dart';
import 'package:highlighting/languages/clean.dart';
import 'package:highlighting/languages/clojure-repl.dart';
import 'package:highlighting/languages/clojure.dart';
import 'package:highlighting/languages/cmake.dart';
import 'package:highlighting/languages/coffeescript.dart';
import 'package:highlighting/languages/coq.dart';
import 'package:highlighting/languages/cos.dart';
import 'package:highlighting/languages/cpp.dart';
import 'package:highlighting/languages/crmsh.dart';
import 'package:highlighting/languages/crystal.dart';
import 'package:highlighting/languages/csharp.dart';
import 'package:highlighting/languages/csp.dart';
import 'package:highlighting/languages/css.dart';
import 'package:highlighting/languages/d.dart';
import 'package:highlighting/languages/dart.dart';
import 'package:highlighting/languages/delphi.dart';
import 'package:highlighting/languages/diff.dart';
import 'package:highlighting/languages/django.dart';
import 'package:highlighting/languages/dns.dart';
import 'package:highlighting/languages/dockerfile.dart';
import 'package:highlighting/languages/dos.dart';
import 'package:highlighting/languages/dsconfig.dart';
import 'package:highlighting/languages/dts.dart';
import 'package:highlighting/languages/dust.dart';
import 'package:highlighting/languages/ebnf.dart';
import 'package:highlighting/languages/elixir.dart';
import 'package:highlighting/languages/elm.dart';
import 'package:highlighting/languages/erb.dart';
import 'package:highlighting/languages/erlang-repl.dart';
import 'package:highlighting/languages/erlang.dart';
import 'package:highlighting/languages/excel.dart';
import 'package:highlighting/languages/fix.dart';
import 'package:highlighting/languages/flix.dart';
import 'package:highlighting/languages/fortran.dart';
import 'package:highlighting/languages/fsharp.dart';
import 'package:highlighting/languages/gams.dart';
import 'package:highlighting/languages/gauss.dart';
import 'package:highlighting/languages/gcode.dart';
import 'package:highlighting/languages/gherkin.dart';
import 'package:highlighting/languages/glsl.dart';
import 'package:highlighting/languages/gml.dart';
import 'package:highlighting/languages/go.dart';
import 'package:highlighting/languages/golo.dart';
import 'package:highlighting/languages/gradle.dart';
import 'package:highlighting/languages/graphql.dart';
import 'package:highlighting/languages/groovy.dart';
import 'package:highlighting/languages/haml.dart';
import 'package:highlighting/languages/handlebars.dart';
import 'package:highlighting/languages/haskell.dart';
import 'package:highlighting/languages/haxe.dart';
import 'package:highlighting/languages/hsp.dart';
import 'package:highlighting/languages/http.dart';
import 'package:highlighting/languages/hy.dart';
import 'package:highlighting/languages/inform7.dart';
import 'package:highlighting/languages/ini.dart';
import 'package:highlighting/languages/irpf90.dart';
import 'package:highlighting/languages/isbl.dart';
import 'package:highlighting/languages/java.dart';
import 'package:highlighting/languages/javascript.dart';
import 'package:highlighting/languages/jboss-cli.dart';
import 'package:highlighting/languages/json.dart';
import 'package:highlighting/languages/julia-repl.dart';
import 'package:highlighting/languages/julia.dart';
import 'package:highlighting/languages/kotlin.dart';
import 'package:highlighting/languages/lasso.dart';
import 'package:highlighting/languages/latex.dart';
import 'package:highlighting/languages/ldif.dart';
import 'package:highlighting/languages/leaf.dart';
import 'package:highlighting/languages/less.dart';
import 'package:highlighting/languages/lisp.dart';
import 'package:highlighting/languages/livecodeserver.dart';
import 'package:highlighting/languages/livescript.dart';
import 'package:highlighting/languages/llvm.dart';
import 'package:highlighting/languages/lsl.dart';
import 'package:highlighting/languages/lua.dart';
import 'package:highlighting/languages/makefile.dart';
import 'package:highlighting/languages/markdown.dart';
import 'package:highlighting/languages/mathematica.dart';
import 'package:highlighting/languages/matlab.dart';
import 'package:highlighting/languages/maxima.dart';
import 'package:highlighting/languages/mel.dart';
import 'package:highlighting/languages/mercury.dart';
import 'package:highlighting/languages/mipsasm.dart';
import 'package:highlighting/languages/mizar.dart';
import 'package:highlighting/languages/mojolicious.dart';
import 'package:highlighting/languages/monkey.dart';
import 'package:highlighting/languages/moonscript.dart';
import 'package:highlighting/languages/n1ql.dart';
import 'package:highlighting/languages/nestedtext.dart';
import 'package:highlighting/languages/nginx.dart';
import 'package:highlighting/languages/nim.dart';
import 'package:highlighting/languages/nix.dart';
import 'package:highlighting/languages/node-repl.dart';
import 'package:highlighting/languages/nsis.dart';
import 'package:highlighting/languages/objectivec.dart';
import 'package:highlighting/languages/ocaml.dart';
import 'package:highlighting/languages/openscad.dart';
import 'package:highlighting/languages/oxygene.dart';
import 'package:highlighting/languages/parser3.dart';
import 'package:highlighting/languages/perl.dart';
import 'package:highlighting/languages/pf.dart';
import 'package:highlighting/languages/pgsql.dart';
import 'package:highlighting/languages/php-template.dart';
import 'package:highlighting/languages/php.dart';
import 'package:highlighting/languages/plaintext.dart';
import 'package:highlighting/languages/pony.dart';
import 'package:highlighting/languages/powershell.dart';
import 'package:highlighting/languages/processing.dart';
import 'package:highlighting/languages/profile.dart';
import 'package:highlighting/languages/prolog.dart';
import 'package:highlighting/languages/properties.dart';
import 'package:highlighting/languages/protobuf.dart';
import 'package:highlighting/languages/puppet.dart';
import 'package:highlighting/languages/purebasic.dart';
import 'package:highlighting/languages/python-repl.dart';
import 'package:highlighting/languages/python.dart';
import 'package:highlighting/languages/q.dart';
import 'package:highlighting/languages/qml.dart';
import 'package:highlighting/languages/r.dart';
import 'package:highlighting/languages/reasonml.dart';
import 'package:highlighting/languages/rib.dart';
import 'package:highlighting/languages/roboconf.dart';
import 'package:highlighting/languages/routeros.dart';
import 'package:highlighting/languages/rsl.dart';
import 'package:highlighting/languages/ruby.dart';
import 'package:highlighting/languages/ruleslanguage.dart';
import 'package:highlighting/languages/rust.dart';
import 'package:highlighting/languages/sas.dart';
import 'package:highlighting/languages/scala.dart';
import 'package:highlighting/languages/scheme.dart';
import 'package:highlighting/languages/scilab.dart';
import 'package:highlighting/languages/scss.dart';
import 'package:highlighting/languages/shell.dart';
import 'package:highlighting/languages/smali.dart';
import 'package:highlighting/languages/smalltalk.dart';
import 'package:highlighting/languages/sml.dart';
import 'package:highlighting/languages/sqf.dart';
import 'package:highlighting/languages/sql.dart';
import 'package:highlighting/languages/stan.dart';
import 'package:highlighting/languages/stata.dart';
import 'package:highlighting/languages/step21.dart';
import 'package:highlighting/languages/stylus.dart';
import 'package:highlighting/languages/subunit.dart';
import 'package:highlighting/languages/swift.dart';
import 'package:highlighting/languages/taggerscript.dart';
import 'package:highlighting/languages/tap.dart';
import 'package:highlighting/languages/tcl.dart';
import 'package:highlighting/languages/thrift.dart';
import 'package:highlighting/languages/tp.dart';
import 'package:highlighting/languages/twig.dart';
import 'package:highlighting/languages/typescript.dart';
import 'package:highlighting/languages/vala.dart';
import 'package:highlighting/languages/vbnet.dart';
import 'package:highlighting/languages/vbscript-html.dart';
import 'package:highlighting/languages/vbscript.dart';
import 'package:highlighting/languages/verilog.dart';
import 'package:highlighting/languages/vhdl.dart';
import 'package:highlighting/languages/vim.dart';
import 'package:highlighting/languages/wasm.dart';
import 'package:highlighting/languages/wren.dart';
import 'package:highlighting/languages/x86asm.dart';
import 'package:highlighting/languages/xl.dart';
import 'package:highlighting/languages/xml.dart';
import 'package:highlighting/languages/xquery.dart';
import 'package:highlighting/languages/yaml.dart';
import 'package:highlighting/languages/zephir.dart';