├── .gitattributes ├── .gitignore ├── .gitmodules ├── .prettierrc ├── LICENSE ├── README.md ├── build.gradle.kts ├── doc ├── maintainers_guide.md └── migrating.md ├── flutter_highlighting ├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── analysis_options.yaml ├── build.gradle.kts ├── example │ ├── .gitignore │ ├── .metadata │ ├── README.md │ ├── android │ │ ├── app │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ │ ├── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ └── flutter_highlight_gallery │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── res │ │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ └── settings.gradle │ ├── ios │ │ ├── Flutter │ │ │ ├── AppFrameworkInfo.plist │ │ │ ├── Debug.xcconfig │ │ │ ├── Flutter.podspec │ │ │ └── Release.xcconfig │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── Runner.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ └── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ ├── Runner.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── Runner │ │ │ ├── AppDelegate.swift │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ │ └── LaunchImage.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ └── README.md │ │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ │ ├── Info.plist │ │ │ └── Runner-Bridging-Header.h │ ├── lib │ │ ├── example_map.dart │ │ └── main.dart │ ├── pubspec.yaml │ └── web │ │ └── index.html ├── lib │ ├── flutter_highlighting.dart │ ├── theme_map.dart │ └── themes │ │ ├── a11y-dark.dart │ │ ├── a11y-light.dart │ │ ├── agate.dart │ │ ├── an-old-hope.dart │ │ ├── androidstudio.dart │ │ ├── arduino-light.dart │ │ ├── arta.dart │ │ ├── ascetic.dart │ │ ├── atelier-cave-dark.dart │ │ ├── atelier-cave-light.dart │ │ ├── atelier-dune-dark.dart │ │ ├── atelier-dune-light.dart │ │ ├── atelier-estuary-dark.dart │ │ ├── atelier-estuary-light.dart │ │ ├── atelier-forest-dark.dart │ │ ├── atelier-forest-light.dart │ │ ├── atelier-heath-dark.dart │ │ ├── atelier-heath-light.dart │ │ ├── atelier-lakeside-dark.dart │ │ ├── atelier-lakeside-light.dart │ │ ├── atelier-plateau-dark.dart │ │ ├── atelier-plateau-light.dart │ │ ├── atelier-savanna-dark.dart │ │ ├── atelier-savanna-light.dart │ │ ├── atelier-seaside-dark.dart │ │ ├── atelier-seaside-light.dart │ │ ├── atelier-sulphurpool-dark.dart │ │ ├── atelier-sulphurpool-light.dart │ │ ├── atom-one-dark-reasonable.dart │ │ ├── atom-one-dark.dart │ │ ├── atom-one-light.dart │ │ ├── brown-paper.dart │ │ ├── codepen-embed.dart │ │ ├── color-brewer.dart │ │ ├── darcula.dart │ │ ├── dark.dart │ │ ├── default.dart │ │ ├── devibeans.dart │ │ ├── docco.dart │ │ ├── dracula.dart │ │ ├── far.dart │ │ ├── felipec.dart │ │ ├── foundation.dart │ │ ├── github-dark-dimmed.dart │ │ ├── github-dark.dart │ │ ├── github-gist.dart │ │ ├── github.dart │ │ ├── gml.dart │ │ ├── googlecode.dart │ │ ├── gradient-dark.dart │ │ ├── gradient-light.dart │ │ ├── grayscale.dart │ │ ├── gruvbox-dark.dart │ │ ├── gruvbox-light.dart │ │ ├── hopscotch.dart │ │ ├── hybrid.dart │ │ ├── idea.dart │ │ ├── intellij-light.dart │ │ ├── ir-black.dart │ │ ├── isbl-editor-dark.dart │ │ ├── isbl-editor-light.dart │ │ ├── kimbie-dark.dart │ │ ├── kimbie-light.dart │ │ ├── kimbie.dark.dart │ │ ├── kimbie.light.dart │ │ ├── lightfair.dart │ │ ├── lioshi.dart │ │ ├── magula.dart │ │ ├── mono-blue.dart │ │ ├── monokai-sublime.dart │ │ ├── monokai.dart │ │ ├── night-owl.dart │ │ ├── nnfx-dark.dart │ │ ├── nnfx-light.dart │ │ ├── nord.dart │ │ ├── obsidian.dart │ │ ├── ocean.dart │ │ ├── panda-syntax-dark.dart │ │ ├── panda-syntax-light.dart │ │ ├── paraiso-dark.dart │ │ ├── paraiso-light.dart │ │ ├── pojoaque.dart │ │ ├── purebasic.dart │ │ ├── qtcreator-dark.dart │ │ ├── qtcreator-light.dart │ │ ├── qtcreator_dark.dart │ │ ├── qtcreator_light.dart │ │ ├── railscasts.dart │ │ ├── rainbow.dart │ │ ├── routeros.dart │ │ ├── school-book.dart │ │ ├── shades-of-purple.dart │ │ ├── solarized-dark.dart │ │ ├── solarized-light.dart │ │ ├── srcery.dart │ │ ├── stackoverflow-dark.dart │ │ ├── stackoverflow-light.dart │ │ ├── sunburst.dart │ │ ├── tokyo-night-dark.dart │ │ ├── tokyo-night-light.dart │ │ ├── tomorrow-night-blue.dart │ │ ├── tomorrow-night-bright.dart │ │ ├── tomorrow-night-eighties.dart │ │ ├── tomorrow-night.dart │ │ ├── tomorrow.dart │ │ ├── vs.dart │ │ ├── vs2015.dart │ │ ├── xcode.dart │ │ ├── xt256.dart │ │ └── zenburn.dart └── pubspec.yaml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── highlighting ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── analysis_options.yaml ├── build.gradle.kts ├── example │ └── main.dart ├── lib │ ├── highlighting.dart │ ├── languages │ │ ├── 1c.dart │ │ ├── abnf.dart │ │ ├── accesslog.dart │ │ ├── actionscript.dart │ │ ├── ada.dart │ │ ├── all.dart │ │ ├── angelscript.dart │ │ ├── apache.dart │ │ ├── applescript.dart │ │ ├── arcade.dart │ │ ├── arduino.dart │ │ ├── armasm.dart │ │ ├── asciidoc.dart │ │ ├── aspectj.dart │ │ ├── autohotkey.dart │ │ ├── autoit.dart │ │ ├── avrasm.dart │ │ ├── awk.dart │ │ ├── axapta.dart │ │ ├── bash.dart │ │ ├── basic.dart │ │ ├── bnf.dart │ │ ├── brainfuck.dart │ │ ├── c.dart │ │ ├── cal.dart │ │ ├── capnproto.dart │ │ ├── ceylon.dart │ │ ├── clean.dart │ │ ├── clojure-repl.dart │ │ ├── clojure.dart │ │ ├── cmake.dart │ │ ├── coffeescript.dart │ │ ├── coq.dart │ │ ├── cos.dart │ │ ├── cpp.dart │ │ ├── crmsh.dart │ │ ├── crystal.dart │ │ ├── csharp.dart │ │ ├── csp.dart │ │ ├── css.dart │ │ ├── d.dart │ │ ├── dart.dart │ │ ├── delphi.dart │ │ ├── diff.dart │ │ ├── django.dart │ │ ├── dns.dart │ │ ├── dockerfile.dart │ │ ├── dos.dart │ │ ├── dsconfig.dart │ │ ├── dts.dart │ │ ├── dust.dart │ │ ├── ebnf.dart │ │ ├── elixir.dart │ │ ├── elm.dart │ │ ├── erb.dart │ │ ├── erlang-repl.dart │ │ ├── erlang.dart │ │ ├── excel.dart │ │ ├── fix.dart │ │ ├── flix.dart │ │ ├── fortran.dart │ │ ├── fsharp.dart │ │ ├── gams.dart │ │ ├── gauss.dart │ │ ├── gcode.dart │ │ ├── gherkin.dart │ │ ├── glsl.dart │ │ ├── gml.dart │ │ ├── go.dart │ │ ├── golo.dart │ │ ├── gradle.dart │ │ ├── graphql.dart │ │ ├── groovy.dart │ │ ├── haml.dart │ │ ├── handlebars.dart │ │ ├── haskell.dart │ │ ├── haxe.dart │ │ ├── hsp.dart │ │ ├── http.dart │ │ ├── hy.dart │ │ ├── inform7.dart │ │ ├── ini.dart │ │ ├── irpf90.dart │ │ ├── isbl.dart │ │ ├── java.dart │ │ ├── javascript.dart │ │ ├── jboss-cli.dart │ │ ├── json.dart │ │ ├── julia-repl.dart │ │ ├── julia.dart │ │ ├── kotlin.dart │ │ ├── lasso.dart │ │ ├── latex.dart │ │ ├── ldif.dart │ │ ├── leaf.dart │ │ ├── less.dart │ │ ├── lisp.dart │ │ ├── livecodeserver.dart │ │ ├── livescript.dart │ │ ├── llvm.dart │ │ ├── lsl.dart │ │ ├── lua.dart │ │ ├── makefile.dart │ │ ├── markdown.dart │ │ ├── mathematica.dart │ │ ├── matlab.dart │ │ ├── maxima.dart │ │ ├── mel.dart │ │ ├── mercury.dart │ │ ├── mipsasm.dart │ │ ├── mizar.dart │ │ ├── mojolicious.dart │ │ ├── monkey.dart │ │ ├── moonscript.dart │ │ ├── n1ql.dart │ │ ├── nestedtext.dart │ │ ├── nginx.dart │ │ ├── nim.dart │ │ ├── nix.dart │ │ ├── node-repl.dart │ │ ├── nsis.dart │ │ ├── objectivec.dart │ │ ├── ocaml.dart │ │ ├── openscad.dart │ │ ├── oxygene.dart │ │ ├── parser3.dart │ │ ├── perl.dart │ │ ├── pf.dart │ │ ├── pgsql.dart │ │ ├── php-template.dart │ │ ├── php.dart │ │ ├── plaintext.dart │ │ ├── pony.dart │ │ ├── powershell.dart │ │ ├── processing.dart │ │ ├── profile.dart │ │ ├── prolog.dart │ │ ├── properties.dart │ │ ├── protobuf.dart │ │ ├── puppet.dart │ │ ├── purebasic.dart │ │ ├── python-repl.dart │ │ ├── python.dart │ │ ├── q.dart │ │ ├── qml.dart │ │ ├── r.dart │ │ ├── reasonml.dart │ │ ├── rib.dart │ │ ├── roboconf.dart │ │ ├── routeros.dart │ │ ├── rsl.dart │ │ ├── ruby.dart │ │ ├── ruleslanguage.dart │ │ ├── rust.dart │ │ ├── sas.dart │ │ ├── scala.dart │ │ ├── scheme.dart │ │ ├── scilab.dart │ │ ├── scss.dart │ │ ├── shell.dart │ │ ├── smali.dart │ │ ├── smalltalk.dart │ │ ├── sml.dart │ │ ├── sqf.dart │ │ ├── sql.dart │ │ ├── stan.dart │ │ ├── stata.dart │ │ ├── step21.dart │ │ ├── stylus.dart │ │ ├── subunit.dart │ │ ├── swift.dart │ │ ├── taggerscript.dart │ │ ├── tap.dart │ │ ├── tcl.dart │ │ ├── thrift.dart │ │ ├── tp.dart │ │ ├── twig.dart │ │ ├── typescript.dart │ │ ├── vala.dart │ │ ├── vbnet.dart │ │ ├── vbscript-html.dart │ │ ├── vbscript.dart │ │ ├── verilog.dart │ │ ├── vhdl.dart │ │ ├── vim.dart │ │ ├── wasm.dart │ │ ├── wren.dart │ │ ├── x86asm.dart │ │ ├── xl.dart │ │ ├── xml.dart │ │ ├── xquery.dart │ │ ├── yaml.dart │ │ └── zephir.dart │ └── src │ │ ├── callbacks.dart │ │ ├── common_modes.g.dart │ │ ├── compile_keywords.dart │ │ ├── compiled_language.dart │ │ ├── compiled_mode.dart │ │ ├── compiled_scope.dart │ │ ├── const │ │ ├── literals.dart │ │ ├── magic_numbers.dart │ │ └── regexes.dart │ │ ├── extension │ │ ├── before_match.dart │ │ ├── compiler_extensions.dart │ │ ├── multi_class.dart │ │ └── reg_exp.dart │ │ ├── highlight.dart │ │ ├── html_renderer.dart │ │ ├── js_style_reg_exp.dart │ │ ├── js_style_reg_exp_match.dart │ │ ├── language.dart │ │ ├── language_definition_common.dart │ │ ├── languages │ │ └── mathematica_symbols.g.dart │ │ ├── mode.dart │ │ ├── mode_compiler.dart │ │ ├── multi_regex.dart │ │ ├── node.dart │ │ ├── nulls.dart │ │ ├── response.dart │ │ ├── result.dart │ │ └── utils.dart ├── pubspec.yaml └── test │ └── golden_tests_generator_test.dart ├── settings.gradle.kts └── tool ├── .gitignore ├── .prettierrc.json ├── build.gradle.kts ├── js ├── flutter-highlight.js ├── gallery.js ├── gulpfile.esm.js └── highlight.js ├── jsconfig.json ├── package.json ├── src ├── callback_dictionary.ts ├── common.ts ├── common_modes.ts ├── languages │ └── mathematica.ts ├── porting.ts ├── types │ ├── highlight.js.d.ts │ ├── javascript.d.ts │ └── mathematica.d.ts └── util.ts ├── tsconfig.json └── utils.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | # 4 | # Linux start script should use lf 5 | /gradlew text eol=lf 6 | 7 | # These are Windows script files and should use crlf 8 | *.bat text eol=crlf 9 | 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.gradle 3 | 4 | /highlighting/test/errors 5 | /highlighting/test/highlight.js 6 | 7 | /local.properties 8 | 9 | build 10 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "vendor/highlight.js"] 2 | path = vendor/highlight.js 3 | url = https://github.com/highlightjs/highlight.js.git 4 | [submodule "vendor/highlightjs-vue"] 5 | path = vendor/highlightjs-vue 6 | url = https://github.com/highlightjs/highlightjs-vue.git 7 | [submodule "vendor/highlightjs-graphql"] 8 | path = vendor/highlightjs-graphql 9 | url = https://github.com/dpeek/highlightjs-graphql.git 10 | [submodule "vendor/highlightjs-GN"] 11 | path = vendor/highlightjs-GN 12 | url = https://github.com/highlightjs/highlightjs-GN.git 13 | [submodule "vendor/highlightjs-solidity"] 14 | path = vendor/highlightjs-solidity 15 | url = https://github.com/highlightjs/highlightjs-solidity.git 16 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "proseWrap": "never" 3 | } 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Akvelon Inc. 4 | Copyright (c) 2019 Rongjian Zhang 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # highlighting 2 | 3 | **This repository is currently a work in progress. Please follow us and check back later.** 4 | 5 | We aim to port the [highlight.js](https://highlightjs.org) project into Dart. 6 | -------------------------------------------------------------------------------- /build.gradle.kts: -------------------------------------------------------------------------------- 1 | tasks.register("port") { 2 | dependsOn("portLanguages") 3 | dependsOn("portThemes") 4 | } 5 | 6 | tasks.register("portLanguages") { 7 | dependsOn("tool:npxTsc") 8 | 9 | doLast { 10 | exec { 11 | executable("node") 12 | args("highlight.js") 13 | workingDir("tool/js") 14 | } 15 | 16 | exec { 17 | executable("dart") 18 | args( 19 | "format", 20 | "highlighting/lib/languages", 21 | "highlighting/lib/src/common_modes.g.dart", 22 | "highlighting/lib/src/languages/mathematica_symbols.g.dart", 23 | ) 24 | } 25 | } 26 | } 27 | 28 | tasks.register("portThemes") { 29 | dependsOn("tool:npxTsc") 30 | 31 | doLast { 32 | exec { 33 | executable("node") 34 | args("flutter-highlight.js") 35 | workingDir("tool/js") 36 | } 37 | 38 | exec { 39 | executable("dart") 40 | args( 41 | "format", 42 | "flutter_highlighting/lib/themes", 43 | "flutter_highlighting/lib/theme_map.dart" 44 | ) 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /doc/maintainers_guide.md: -------------------------------------------------------------------------------- 1 | # Maintainer's Guide 2 | 3 | ## Porting new changes from HighlightJS 4 | 5 | ```bash 6 | ./gradlew :port 7 | ``` 8 | 9 | ## Precommit 10 | 11 | ```bash 12 | ./gradlew precommit 13 | ``` 14 | 15 | ## Bumping version 16 | 17 | The major version of the package must be bumped on any changes that are breaking 18 | to the Dart client programs. 19 | 20 | If HighlightJS itself updates the major version, but our porting tool and Dart code 21 | dampen that into a non-breaking change, we should not bump our major version. 22 | 23 | The version of HighlightJS must be added to the Dart version after `+`. 24 | For instance, `0.9.0+11.8.0`. 25 | 26 | In everything else, we follow [the pub.dev's flavor of Semver](https://dart.dev/tools/pub/versioning#semantic-versions). 27 | 28 | When a package is released, add a tag with the version number prepended with `v`. 29 | For instance, `v0.9.0+11.8.0`. 30 | -------------------------------------------------------------------------------- /doc/migrating.md: -------------------------------------------------------------------------------- 1 | # Migration Guide 2 | 3 | ## Migrating from 'highlight' package to v0.9.x 4 | 5 | The [highlight](https://pub.dev/packages/highlight) package was the first port of 6 | [highlight.js](https://highlightjs.org) into Dart. 7 | It was abandoned by its authors in 2021, so we had to fork it and continue the development. 8 | 9 | To migrate from `highlight` and `flutter_highlight`: 10 | 11 | 1. Change the packages you use to `highlighting` and/or `flutter_highlighting`. 12 | 2. Import `highlighting/highlighting.dart` wherever you used either 13 | `highlight.dart` or `highlight_core.dart`. 14 | 3. If you were using the bulk `highlight.dart` that imported all languages, 15 | additionally import `highlighting/languages/all.dart` 16 | because the new `highlighting.dart` is the equivalent of the old `highlight_core.dart`. 17 | 4. Use the `Language` class instead of `Mode`. 18 | 5. Delete the first argument to `registerLanguage()` or change it 19 | to an optional `name` named argument. 20 | 6. Manually register the languages you need if you were relying on all languages 21 | being automatically registered. 22 | 7. Use `highlight.parse()` instead of `highlight.highlight()`. 23 | -------------------------------------------------------------------------------- /flutter_highlighting/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/ServiceDefinitions.json 65 | **/ios/Runner/GeneratedPluginRegistrant.* 66 | 67 | # Exceptions to above rules. 68 | !**/ios/**/default.mode1v3 69 | !**/ios/**/default.mode2v3 70 | !**/ios/**/default.pbxuser 71 | !**/ios/**/default.perspectivev3 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 73 | 74 | pubspec.lock 75 | -------------------------------------------------------------------------------- /flutter_highlighting/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 20e59316b8b8474554b38493b8ca888794b0234a 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /flutter_highlighting/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Akvelon Inc. 4 | Copyright (c) 2019 Rongjian Zhang 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /flutter_highlighting/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:total_lints/app.yaml 2 | -------------------------------------------------------------------------------- /flutter_highlighting/build.gradle.kts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/build.gradle.kts -------------------------------------------------------------------------------- /flutter_highlighting/example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: f5733f7a62ebc7c2ba324a2b410cd81215956b7d 8 | channel: dev 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /flutter_highlighting/example/README.md: -------------------------------------------------------------------------------- 1 | # flutter_highlight_gallery 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/kotlin/com/example/flutter_highlight_gallery/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_highlight_gallery 2 | 3 | import android.os.Bundle 4 | 5 | import io.flutter.app.FlutterActivity 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | GeneratedPluginRegistrant.registerWith(this) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.2.71' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.2.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /flutter_highlighting/example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Flutter/Flutter.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # NOTE: This podspec is NOT to be published. It is only used as a local source! 3 | # 4 | 5 | Pod::Spec.new do |s| 6 | s.name = 'Flutter' 7 | s.version = '1.0.0' 8 | s.summary = 'High-performance, high-fidelity mobile apps.' 9 | s.description = <<-DESC 10 | Flutter provides an easy and productive way to build and deploy high-performance mobile apps for Android and iOS. 11 | DESC 12 | s.homepage = 'https://flutter.io' 13 | s.license = { :type => 'MIT' } 14 | s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' } 15 | s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s } 16 | s.ios.deployment_target = '8.0' 17 | s.vendored_frameworks = 'Flutter.framework' 18 | end 19 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - url_launcher (0.0.1): 4 | - Flutter 5 | - url_launcher_web (0.0.1): 6 | - Flutter 7 | 8 | DEPENDENCIES: 9 | - Flutter (from `Flutter`) 10 | - url_launcher (from `.symlinks/plugins/url_launcher/ios`) 11 | - url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`) 12 | 13 | EXTERNAL SOURCES: 14 | Flutter: 15 | :path: Flutter 16 | url_launcher: 17 | :path: ".symlinks/plugins/url_launcher/ios" 18 | url_launcher_web: 19 | :path: ".symlinks/plugins/url_launcher_web/ios" 20 | 21 | SPEC CHECKSUMS: 22 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 23 | url_launcher: a1c0cc845906122c4784c542523d8cacbded5626 24 | url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c 25 | 26 | PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83 27 | 28 | COCOAPODS: 1.8.4 29 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/flutter_highlighting/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_highlight_gallery 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /flutter_highlighting/example/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /flutter_highlighting/example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_highlight_gallery 2 | description: A new Flutter project. 3 | publish_to: none 4 | 5 | version: 1.0.0+1 6 | 7 | environment: 8 | sdk: ">=2.17.0 <3.0.0" 9 | flutter: ">=3.0.0" 10 | 11 | dependencies: 12 | flutter: { sdk: flutter } 13 | flutter_highlighting: { path: ../ } 14 | 15 | flutter: 16 | uses-material-design: true 17 | 18 | dependency_overrides: 19 | highlighting: { path: ../../highlighting } 20 | -------------------------------------------------------------------------------- /flutter_highlighting/example/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Flutter Highlight Gallery 6 | 7 | 11 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/a11y-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const a11yDarkTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff2b2b2b), color: Color(0xfff8f8f2)), 8 | 'comment': TextStyle(color: Color(0xffd4d0ab)), 9 | 'quote': TextStyle(color: Color(0xffd4d0ab)), 10 | 'deletion': TextStyle(color: Color(0xffffa07a)), 11 | 'name': TextStyle(color: Color(0xffffa07a)), 12 | 'regexp': TextStyle(color: Color(0xffffa07a)), 13 | 'selector-class': TextStyle(color: Color(0xffffa07a)), 14 | 'selector-id': TextStyle(color: Color(0xffffa07a)), 15 | 'tag': TextStyle(color: Color(0xffffa07a)), 16 | 'template-variable': TextStyle(color: Color(0xffffa07a)), 17 | 'variable': TextStyle(color: Color(0xffffa07a)), 18 | 'built_in': TextStyle(color: Color(0xfff5ab35)), 19 | 'link': TextStyle(color: Color(0xfff5ab35)), 20 | 'literal': TextStyle(color: Color(0xfff5ab35)), 21 | 'meta': TextStyle(color: Color(0xfff5ab35)), 22 | 'number': TextStyle(color: Color(0xfff5ab35)), 23 | 'params': TextStyle(color: Color(0xfff5ab35)), 24 | 'type': TextStyle(color: Color(0xfff5ab35)), 25 | 'attribute': TextStyle(color: Color(0xffffd700)), 26 | 'addition': TextStyle(color: Color(0xffabe338)), 27 | 'bullet': TextStyle(color: Color(0xffabe338)), 28 | 'string': TextStyle(color: Color(0xffabe338)), 29 | 'symbol': TextStyle(color: Color(0xffabe338)), 30 | 'section': TextStyle(color: Color(0xff00e0e0)), 31 | 'title': TextStyle(color: Color(0xff00e0e0)), 32 | 'keyword': TextStyle(color: Color(0xffdcc6e0)), 33 | 'selector-tag': TextStyle(color: Color(0xffdcc6e0)), 34 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 35 | 'strong': TextStyle(fontWeight: FontWeight.w700), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/a11y-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const a11yLightTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xfffefefe), color: Color(0xff545454)), 8 | 'comment': TextStyle(color: Color(0xff696969)), 9 | 'quote': TextStyle(color: Color(0xff696969)), 10 | 'deletion': TextStyle(color: Color(0xffd91e18)), 11 | 'name': TextStyle(color: Color(0xffd91e18)), 12 | 'regexp': TextStyle(color: Color(0xffd91e18)), 13 | 'selector-class': TextStyle(color: Color(0xffd91e18)), 14 | 'selector-id': TextStyle(color: Color(0xffd91e18)), 15 | 'tag': TextStyle(color: Color(0xffd91e18)), 16 | 'template-variable': TextStyle(color: Color(0xffd91e18)), 17 | 'variable': TextStyle(color: Color(0xffd91e18)), 18 | 'attribute': TextStyle(color: Color(0xffaa5d00)), 19 | 'built_in': TextStyle(color: Color(0xffaa5d00)), 20 | 'link': TextStyle(color: Color(0xffaa5d00)), 21 | 'literal': TextStyle(color: Color(0xffaa5d00)), 22 | 'meta': TextStyle(color: Color(0xffaa5d00)), 23 | 'number': TextStyle(color: Color(0xffaa5d00)), 24 | 'params': TextStyle(color: Color(0xffaa5d00)), 25 | 'type': TextStyle(color: Color(0xffaa5d00)), 26 | 'section': TextStyle(color: Color(0xff007faa)), 27 | 'title': TextStyle(color: Color(0xff007faa)), 28 | 'keyword': TextStyle(color: Color(0xff7928a1)), 29 | 'selector-tag': TextStyle(color: Color(0xff7928a1)), 30 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 31 | 'strong': TextStyle(fontWeight: FontWeight.w700), 32 | }; 33 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/an-old-hope.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const anOldHopeTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff1c1d21), color: Color(0xffc0c5ce)), 8 | 'comment': TextStyle(color: Color(0xffb6b18b)), 9 | 'quote': TextStyle(color: Color(0xffb6b18b)), 10 | 'deletion': TextStyle(color: Color(0xffeb3c54)), 11 | 'name': TextStyle(color: Color(0xffeb3c54)), 12 | 'regexp': TextStyle(color: Color(0xffeb3c54)), 13 | 'selector-class': TextStyle(color: Color(0xffeb3c54)), 14 | 'selector-id': TextStyle(color: Color(0xffeb3c54)), 15 | 'tag': TextStyle(color: Color(0xffeb3c54)), 16 | 'template-variable': TextStyle(color: Color(0xffeb3c54)), 17 | 'variable': TextStyle(color: Color(0xffeb3c54)), 18 | 'built_in': TextStyle(color: Color(0xffe7ce56)), 19 | 'link': TextStyle(color: Color(0xffe7ce56)), 20 | 'literal': TextStyle(color: Color(0xffe7ce56)), 21 | 'meta': TextStyle(color: Color(0xffe7ce56)), 22 | 'number': TextStyle(color: Color(0xffe7ce56)), 23 | 'params': TextStyle(color: Color(0xffe7ce56)), 24 | 'type': TextStyle(color: Color(0xffe7ce56)), 25 | 'attribute': TextStyle(color: Color(0xffee7c2b)), 26 | 'addition': TextStyle(color: Color(0xff4fb4d7)), 27 | 'bullet': TextStyle(color: Color(0xff4fb4d7)), 28 | 'string': TextStyle(color: Color(0xff4fb4d7)), 29 | 'symbol': TextStyle(color: Color(0xff4fb4d7)), 30 | 'section': TextStyle(color: Color(0xff78bb65)), 31 | 'title': TextStyle(color: Color(0xff78bb65)), 32 | 'keyword': TextStyle(color: Color(0xffb45ea4)), 33 | 'selector-tag': TextStyle(color: Color(0xffb45ea4)), 34 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 35 | 'strong': TextStyle(fontWeight: FontWeight.w700), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/androidstudio.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const androidstudioTheme = { 6 | 'root': 7 | TextStyle(color: Color(0xffa9b7c6), backgroundColor: Color(0xff282b2e)), 8 | 'bullet': TextStyle(color: Color(0xff6897bb)), 9 | 'literal': TextStyle(color: Color(0xff6897bb)), 10 | 'number': TextStyle(color: Color(0xff6897bb)), 11 | 'symbol': TextStyle(color: Color(0xff6897bb)), 12 | 'deletion': TextStyle(color: Color(0xffcc7832)), 13 | 'keyword': TextStyle(color: Color(0xffcc7832)), 14 | 'selector-tag': TextStyle(color: Color(0xffcc7832)), 15 | 'link': TextStyle(color: Color(0xff629755)), 16 | 'template-variable': TextStyle(color: Color(0xff629755)), 17 | 'variable': TextStyle(color: Color(0xff629755)), 18 | 'meta': TextStyle(color: Color(0xffbbb529)), 19 | 'addition': TextStyle(color: Color(0xff6a8759)), 20 | 'attribute': TextStyle(color: Color(0xff6a8759)), 21 | 'string': TextStyle(color: Color(0xff6a8759)), 22 | 'section': TextStyle(color: Color(0xffffc66d)), 23 | 'title': TextStyle(color: Color(0xffffc66d)), 24 | 'type': TextStyle(color: Color(0xffffc66d)), 25 | 'name': TextStyle(color: Color(0xffe8bf6a)), 26 | 'selector-class': TextStyle(color: Color(0xffe8bf6a)), 27 | 'selector-id': TextStyle(color: Color(0xffe8bf6a)), 28 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 29 | 'strong': TextStyle(fontWeight: FontWeight.w700), 30 | }; 31 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/arta.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const artaTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff222222), color: Color(0xffaaaaaa)), 8 | 'subst': TextStyle(color: Color(0xffaaaaaa)), 9 | 'section': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 10 | 'comment': TextStyle(color: Color(0xff444444)), 11 | 'meta': TextStyle(color: Color(0xff444444)), 12 | 'quote': TextStyle(color: Color(0xff444444)), 13 | 'bullet': TextStyle(color: Color(0xffffcc33)), 14 | 'regexp': TextStyle(color: Color(0xffffcc33)), 15 | 'string': TextStyle(color: Color(0xffffcc33)), 16 | 'symbol': TextStyle(color: Color(0xffffcc33)), 17 | 'addition': TextStyle(color: Color(0xff00cc66)), 18 | 'number': TextStyle(color: Color(0xff00cc66)), 19 | 'attribute': TextStyle(color: Color(0xff32aaee)), 20 | 'built_in': TextStyle(color: Color(0xff32aaee)), 21 | 'link': TextStyle(color: Color(0xff32aaee)), 22 | 'literal': TextStyle(color: Color(0xff32aaee)), 23 | 'template-variable': TextStyle(color: Color(0xff32aaee)), 24 | 'type': TextStyle(color: Color(0xff32aaee)), 25 | 'keyword': TextStyle(color: Color(0xff6644aa)), 26 | 'name': TextStyle(color: Color(0xff6644aa)), 27 | 'selector-class': TextStyle(color: Color(0xff6644aa)), 28 | 'selector-id': TextStyle(color: Color(0xff6644aa)), 29 | 'selector-tag': TextStyle(color: Color(0xff6644aa)), 30 | 'deletion': TextStyle(color: Color(0xffbb1166)), 31 | 'template-tag': TextStyle(color: Color(0xffbb1166)), 32 | 'title': TextStyle(color: Color(0xffbb1166)), 33 | 'variable': TextStyle(color: Color(0xffbb1166)), 34 | 'doctag': TextStyle(fontWeight: FontWeight.w700), 35 | 'strong': TextStyle(fontWeight: FontWeight.w700), 36 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/ascetic.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const asceticTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xffffffff), color: Color(0xff000000)), 8 | 'addition': TextStyle(color: Color(0xff888888)), 9 | 'attribute': TextStyle(color: Color(0xff888888)), 10 | 'bullet': TextStyle(color: Color(0xff888888)), 11 | 'link': TextStyle(color: Color(0xff888888)), 12 | 'section': TextStyle(color: Color(0xff888888), fontWeight: FontWeight.w700), 13 | 'string': TextStyle(color: Color(0xff888888)), 14 | 'symbol': TextStyle(color: Color(0xff888888)), 15 | 'template-variable': TextStyle(color: Color(0xff888888)), 16 | 'variable': TextStyle(color: Color(0xff888888)), 17 | 'comment': TextStyle(color: Color(0xffcccccc)), 18 | 'deletion': TextStyle(color: Color(0xffcccccc)), 19 | 'meta': TextStyle(color: Color(0xffcccccc)), 20 | 'quote': TextStyle(color: Color(0xffcccccc)), 21 | 'keyword': TextStyle(fontWeight: FontWeight.w700), 22 | 'name': TextStyle(fontWeight: FontWeight.w700), 23 | 'selector-tag': TextStyle(fontWeight: FontWeight.w700), 24 | 'strong': TextStyle(fontWeight: FontWeight.w700), 25 | 'type': TextStyle(fontWeight: FontWeight.w700), 26 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 27 | }; 28 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-cave-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierCaveDarkTheme = { 6 | 'comment': TextStyle(color: Color(0xff7e7887)), 7 | 'quote': TextStyle(color: Color(0xff7e7887)), 8 | 'variable': TextStyle(color: Color(0xffbe4678)), 9 | 'template-variable': TextStyle(color: Color(0xffbe4678)), 10 | 'attribute': TextStyle(color: Color(0xffbe4678)), 11 | 'regexp': TextStyle(color: Color(0xffbe4678)), 12 | 'link': TextStyle(color: Color(0xffbe4678)), 13 | 'tag': TextStyle(color: Color(0xffbe4678)), 14 | 'name': TextStyle(color: Color(0xffbe4678)), 15 | 'selector-id': TextStyle(color: Color(0xffbe4678)), 16 | 'selector-class': TextStyle(color: Color(0xffbe4678)), 17 | 'number': TextStyle(color: Color(0xffaa573c)), 18 | 'meta': TextStyle(color: Color(0xffaa573c)), 19 | 'built_in': TextStyle(color: Color(0xffaa573c)), 20 | 'builtin-name': TextStyle(color: Color(0xffaa573c)), 21 | 'literal': TextStyle(color: Color(0xffaa573c)), 22 | 'type': TextStyle(color: Color(0xffaa573c)), 23 | 'params': TextStyle(color: Color(0xffaa573c)), 24 | 'string': TextStyle(color: Color(0xff2a9292)), 25 | 'symbol': TextStyle(color: Color(0xff2a9292)), 26 | 'bullet': TextStyle(color: Color(0xff2a9292)), 27 | 'title': TextStyle(color: Color(0xff576ddb)), 28 | 'section': TextStyle(color: Color(0xff576ddb)), 29 | 'keyword': TextStyle(color: Color(0xff955ae7)), 30 | 'selector-tag': TextStyle(color: Color(0xff955ae7)), 31 | 'deletion': 32 | TextStyle(color: Color(0xff19171c), backgroundColor: Color(0xffbe4678)), 33 | 'addition': 34 | TextStyle(color: Color(0xff19171c), backgroundColor: Color(0xff2a9292)), 35 | 'root': 36 | TextStyle(backgroundColor: Color(0xff19171c), color: Color(0xff8b8792)), 37 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 38 | 'strong': TextStyle(fontWeight: FontWeight.bold), 39 | }; 40 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-cave-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierCaveLightTheme = { 6 | 'comment': TextStyle(color: Color(0xff655f6d)), 7 | 'quote': TextStyle(color: Color(0xff655f6d)), 8 | 'variable': TextStyle(color: Color(0xffbe4678)), 9 | 'template-variable': TextStyle(color: Color(0xffbe4678)), 10 | 'attribute': TextStyle(color: Color(0xffbe4678)), 11 | 'tag': TextStyle(color: Color(0xffbe4678)), 12 | 'name': TextStyle(color: Color(0xffbe4678)), 13 | 'regexp': TextStyle(color: Color(0xffbe4678)), 14 | 'link': TextStyle(color: Color(0xffbe4678)), 15 | 'selector-id': TextStyle(color: Color(0xffbe4678)), 16 | 'selector-class': TextStyle(color: Color(0xffbe4678)), 17 | 'number': TextStyle(color: Color(0xffaa573c)), 18 | 'meta': TextStyle(color: Color(0xffaa573c)), 19 | 'built_in': TextStyle(color: Color(0xffaa573c)), 20 | 'builtin-name': TextStyle(color: Color(0xffaa573c)), 21 | 'literal': TextStyle(color: Color(0xffaa573c)), 22 | 'type': TextStyle(color: Color(0xffaa573c)), 23 | 'params': TextStyle(color: Color(0xffaa573c)), 24 | 'string': TextStyle(color: Color(0xff2a9292)), 25 | 'symbol': TextStyle(color: Color(0xff2a9292)), 26 | 'bullet': TextStyle(color: Color(0xff2a9292)), 27 | 'title': TextStyle(color: Color(0xff576ddb)), 28 | 'section': TextStyle(color: Color(0xff576ddb)), 29 | 'keyword': TextStyle(color: Color(0xff955ae7)), 30 | 'selector-tag': TextStyle(color: Color(0xff955ae7)), 31 | 'deletion': 32 | TextStyle(color: Color(0xff19171c), backgroundColor: Color(0xffbe4678)), 33 | 'addition': 34 | TextStyle(color: Color(0xff19171c), backgroundColor: Color(0xff2a9292)), 35 | 'root': 36 | TextStyle(backgroundColor: Color(0xffefecf4), color: Color(0xff585260)), 37 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 38 | 'strong': TextStyle(fontWeight: FontWeight.bold), 39 | }; 40 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-dune-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierDuneDarkTheme = { 6 | 'comment': TextStyle(color: Color(0xff999580)), 7 | 'quote': TextStyle(color: Color(0xff999580)), 8 | 'variable': TextStyle(color: Color(0xffd73737)), 9 | 'template-variable': TextStyle(color: Color(0xffd73737)), 10 | 'attribute': TextStyle(color: Color(0xffd73737)), 11 | 'tag': TextStyle(color: Color(0xffd73737)), 12 | 'name': TextStyle(color: Color(0xffd73737)), 13 | 'regexp': TextStyle(color: Color(0xffd73737)), 14 | 'link': TextStyle(color: Color(0xffd73737)), 15 | 'selector-id': TextStyle(color: Color(0xffd73737)), 16 | 'selector-class': TextStyle(color: Color(0xffd73737)), 17 | 'number': TextStyle(color: Color(0xffb65611)), 18 | 'meta': TextStyle(color: Color(0xffb65611)), 19 | 'built_in': TextStyle(color: Color(0xffb65611)), 20 | 'builtin-name': TextStyle(color: Color(0xffb65611)), 21 | 'literal': TextStyle(color: Color(0xffb65611)), 22 | 'type': TextStyle(color: Color(0xffb65611)), 23 | 'params': TextStyle(color: Color(0xffb65611)), 24 | 'string': TextStyle(color: Color(0xff60ac39)), 25 | 'symbol': TextStyle(color: Color(0xff60ac39)), 26 | 'bullet': TextStyle(color: Color(0xff60ac39)), 27 | 'title': TextStyle(color: Color(0xff6684e1)), 28 | 'section': TextStyle(color: Color(0xff6684e1)), 29 | 'keyword': TextStyle(color: Color(0xffb854d4)), 30 | 'selector-tag': TextStyle(color: Color(0xffb854d4)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xff20201d), color: Color(0xffa6a28c)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-dune-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierDuneLightTheme = { 6 | 'comment': TextStyle(color: Color(0xff7d7a68)), 7 | 'quote': TextStyle(color: Color(0xff7d7a68)), 8 | 'variable': TextStyle(color: Color(0xffd73737)), 9 | 'template-variable': TextStyle(color: Color(0xffd73737)), 10 | 'attribute': TextStyle(color: Color(0xffd73737)), 11 | 'tag': TextStyle(color: Color(0xffd73737)), 12 | 'name': TextStyle(color: Color(0xffd73737)), 13 | 'regexp': TextStyle(color: Color(0xffd73737)), 14 | 'link': TextStyle(color: Color(0xffd73737)), 15 | 'selector-id': TextStyle(color: Color(0xffd73737)), 16 | 'selector-class': TextStyle(color: Color(0xffd73737)), 17 | 'number': TextStyle(color: Color(0xffb65611)), 18 | 'meta': TextStyle(color: Color(0xffb65611)), 19 | 'built_in': TextStyle(color: Color(0xffb65611)), 20 | 'builtin-name': TextStyle(color: Color(0xffb65611)), 21 | 'literal': TextStyle(color: Color(0xffb65611)), 22 | 'type': TextStyle(color: Color(0xffb65611)), 23 | 'params': TextStyle(color: Color(0xffb65611)), 24 | 'string': TextStyle(color: Color(0xff60ac39)), 25 | 'symbol': TextStyle(color: Color(0xff60ac39)), 26 | 'bullet': TextStyle(color: Color(0xff60ac39)), 27 | 'title': TextStyle(color: Color(0xff6684e1)), 28 | 'section': TextStyle(color: Color(0xff6684e1)), 29 | 'keyword': TextStyle(color: Color(0xffb854d4)), 30 | 'selector-tag': TextStyle(color: Color(0xffb854d4)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xfffefbec), color: Color(0xff6e6b5e)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-forest-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierForestDarkTheme = { 6 | 'comment': TextStyle(color: Color(0xff9c9491)), 7 | 'quote': TextStyle(color: Color(0xff9c9491)), 8 | 'variable': TextStyle(color: Color(0xfff22c40)), 9 | 'template-variable': TextStyle(color: Color(0xfff22c40)), 10 | 'attribute': TextStyle(color: Color(0xfff22c40)), 11 | 'tag': TextStyle(color: Color(0xfff22c40)), 12 | 'name': TextStyle(color: Color(0xfff22c40)), 13 | 'regexp': TextStyle(color: Color(0xfff22c40)), 14 | 'link': TextStyle(color: Color(0xfff22c40)), 15 | 'selector-id': TextStyle(color: Color(0xfff22c40)), 16 | 'selector-class': TextStyle(color: Color(0xfff22c40)), 17 | 'number': TextStyle(color: Color(0xffdf5320)), 18 | 'meta': TextStyle(color: Color(0xffdf5320)), 19 | 'built_in': TextStyle(color: Color(0xffdf5320)), 20 | 'builtin-name': TextStyle(color: Color(0xffdf5320)), 21 | 'literal': TextStyle(color: Color(0xffdf5320)), 22 | 'type': TextStyle(color: Color(0xffdf5320)), 23 | 'params': TextStyle(color: Color(0xffdf5320)), 24 | 'string': TextStyle(color: Color(0xff7b9726)), 25 | 'symbol': TextStyle(color: Color(0xff7b9726)), 26 | 'bullet': TextStyle(color: Color(0xff7b9726)), 27 | 'title': TextStyle(color: Color(0xff407ee7)), 28 | 'section': TextStyle(color: Color(0xff407ee7)), 29 | 'keyword': TextStyle(color: Color(0xff6666ea)), 30 | 'selector-tag': TextStyle(color: Color(0xff6666ea)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xff1b1918), color: Color(0xffa8a19f)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-forest-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierForestLightTheme = { 6 | 'comment': TextStyle(color: Color(0xff766e6b)), 7 | 'quote': TextStyle(color: Color(0xff766e6b)), 8 | 'variable': TextStyle(color: Color(0xfff22c40)), 9 | 'template-variable': TextStyle(color: Color(0xfff22c40)), 10 | 'attribute': TextStyle(color: Color(0xfff22c40)), 11 | 'tag': TextStyle(color: Color(0xfff22c40)), 12 | 'name': TextStyle(color: Color(0xfff22c40)), 13 | 'regexp': TextStyle(color: Color(0xfff22c40)), 14 | 'link': TextStyle(color: Color(0xfff22c40)), 15 | 'selector-id': TextStyle(color: Color(0xfff22c40)), 16 | 'selector-class': TextStyle(color: Color(0xfff22c40)), 17 | 'number': TextStyle(color: Color(0xffdf5320)), 18 | 'meta': TextStyle(color: Color(0xffdf5320)), 19 | 'built_in': TextStyle(color: Color(0xffdf5320)), 20 | 'builtin-name': TextStyle(color: Color(0xffdf5320)), 21 | 'literal': TextStyle(color: Color(0xffdf5320)), 22 | 'type': TextStyle(color: Color(0xffdf5320)), 23 | 'params': TextStyle(color: Color(0xffdf5320)), 24 | 'string': TextStyle(color: Color(0xff7b9726)), 25 | 'symbol': TextStyle(color: Color(0xff7b9726)), 26 | 'bullet': TextStyle(color: Color(0xff7b9726)), 27 | 'title': TextStyle(color: Color(0xff407ee7)), 28 | 'section': TextStyle(color: Color(0xff407ee7)), 29 | 'keyword': TextStyle(color: Color(0xff6666ea)), 30 | 'selector-tag': TextStyle(color: Color(0xff6666ea)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xfff1efee), color: Color(0xff68615e)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-heath-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierHeathDarkTheme = { 6 | 'comment': TextStyle(color: Color(0xff9e8f9e)), 7 | 'quote': TextStyle(color: Color(0xff9e8f9e)), 8 | 'variable': TextStyle(color: Color(0xffca402b)), 9 | 'template-variable': TextStyle(color: Color(0xffca402b)), 10 | 'attribute': TextStyle(color: Color(0xffca402b)), 11 | 'tag': TextStyle(color: Color(0xffca402b)), 12 | 'name': TextStyle(color: Color(0xffca402b)), 13 | 'regexp': TextStyle(color: Color(0xffca402b)), 14 | 'link': TextStyle(color: Color(0xffca402b)), 15 | 'selector-id': TextStyle(color: Color(0xffca402b)), 16 | 'selector-class': TextStyle(color: Color(0xffca402b)), 17 | 'number': TextStyle(color: Color(0xffa65926)), 18 | 'meta': TextStyle(color: Color(0xffa65926)), 19 | 'built_in': TextStyle(color: Color(0xffa65926)), 20 | 'builtin-name': TextStyle(color: Color(0xffa65926)), 21 | 'literal': TextStyle(color: Color(0xffa65926)), 22 | 'type': TextStyle(color: Color(0xffa65926)), 23 | 'params': TextStyle(color: Color(0xffa65926)), 24 | 'string': TextStyle(color: Color(0xff918b3b)), 25 | 'symbol': TextStyle(color: Color(0xff918b3b)), 26 | 'bullet': TextStyle(color: Color(0xff918b3b)), 27 | 'title': TextStyle(color: Color(0xff516aec)), 28 | 'section': TextStyle(color: Color(0xff516aec)), 29 | 'keyword': TextStyle(color: Color(0xff7b59c0)), 30 | 'selector-tag': TextStyle(color: Color(0xff7b59c0)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xff1b181b), color: Color(0xffab9bab)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-heath-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierHeathLightTheme = { 6 | 'comment': TextStyle(color: Color(0xff776977)), 7 | 'quote': TextStyle(color: Color(0xff776977)), 8 | 'variable': TextStyle(color: Color(0xffca402b)), 9 | 'template-variable': TextStyle(color: Color(0xffca402b)), 10 | 'attribute': TextStyle(color: Color(0xffca402b)), 11 | 'tag': TextStyle(color: Color(0xffca402b)), 12 | 'name': TextStyle(color: Color(0xffca402b)), 13 | 'regexp': TextStyle(color: Color(0xffca402b)), 14 | 'link': TextStyle(color: Color(0xffca402b)), 15 | 'selector-id': TextStyle(color: Color(0xffca402b)), 16 | 'selector-class': TextStyle(color: Color(0xffca402b)), 17 | 'number': TextStyle(color: Color(0xffa65926)), 18 | 'meta': TextStyle(color: Color(0xffa65926)), 19 | 'built_in': TextStyle(color: Color(0xffa65926)), 20 | 'builtin-name': TextStyle(color: Color(0xffa65926)), 21 | 'literal': TextStyle(color: Color(0xffa65926)), 22 | 'type': TextStyle(color: Color(0xffa65926)), 23 | 'params': TextStyle(color: Color(0xffa65926)), 24 | 'string': TextStyle(color: Color(0xff918b3b)), 25 | 'symbol': TextStyle(color: Color(0xff918b3b)), 26 | 'bullet': TextStyle(color: Color(0xff918b3b)), 27 | 'title': TextStyle(color: Color(0xff516aec)), 28 | 'section': TextStyle(color: Color(0xff516aec)), 29 | 'keyword': TextStyle(color: Color(0xff7b59c0)), 30 | 'selector-tag': TextStyle(color: Color(0xff7b59c0)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xfff7f3f7), color: Color(0xff695d69)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-lakeside-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierLakesideDarkTheme = { 6 | 'comment': TextStyle(color: Color(0xff7195a8)), 7 | 'quote': TextStyle(color: Color(0xff7195a8)), 8 | 'variable': TextStyle(color: Color(0xffd22d72)), 9 | 'template-variable': TextStyle(color: Color(0xffd22d72)), 10 | 'attribute': TextStyle(color: Color(0xffd22d72)), 11 | 'tag': TextStyle(color: Color(0xffd22d72)), 12 | 'name': TextStyle(color: Color(0xffd22d72)), 13 | 'regexp': TextStyle(color: Color(0xffd22d72)), 14 | 'link': TextStyle(color: Color(0xffd22d72)), 15 | 'selector-id': TextStyle(color: Color(0xffd22d72)), 16 | 'selector-class': TextStyle(color: Color(0xffd22d72)), 17 | 'number': TextStyle(color: Color(0xff935c25)), 18 | 'meta': TextStyle(color: Color(0xff935c25)), 19 | 'built_in': TextStyle(color: Color(0xff935c25)), 20 | 'builtin-name': TextStyle(color: Color(0xff935c25)), 21 | 'literal': TextStyle(color: Color(0xff935c25)), 22 | 'type': TextStyle(color: Color(0xff935c25)), 23 | 'params': TextStyle(color: Color(0xff935c25)), 24 | 'string': TextStyle(color: Color(0xff568c3b)), 25 | 'symbol': TextStyle(color: Color(0xff568c3b)), 26 | 'bullet': TextStyle(color: Color(0xff568c3b)), 27 | 'title': TextStyle(color: Color(0xff257fad)), 28 | 'section': TextStyle(color: Color(0xff257fad)), 29 | 'keyword': TextStyle(color: Color(0xff6b6bb8)), 30 | 'selector-tag': TextStyle(color: Color(0xff6b6bb8)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xff161b1d), color: Color(0xff7ea2b4)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-lakeside-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierLakesideLightTheme = { 6 | 'comment': TextStyle(color: Color(0xff5a7b8c)), 7 | 'quote': TextStyle(color: Color(0xff5a7b8c)), 8 | 'variable': TextStyle(color: Color(0xffd22d72)), 9 | 'template-variable': TextStyle(color: Color(0xffd22d72)), 10 | 'attribute': TextStyle(color: Color(0xffd22d72)), 11 | 'tag': TextStyle(color: Color(0xffd22d72)), 12 | 'name': TextStyle(color: Color(0xffd22d72)), 13 | 'regexp': TextStyle(color: Color(0xffd22d72)), 14 | 'link': TextStyle(color: Color(0xffd22d72)), 15 | 'selector-id': TextStyle(color: Color(0xffd22d72)), 16 | 'selector-class': TextStyle(color: Color(0xffd22d72)), 17 | 'number': TextStyle(color: Color(0xff935c25)), 18 | 'meta': TextStyle(color: Color(0xff935c25)), 19 | 'built_in': TextStyle(color: Color(0xff935c25)), 20 | 'builtin-name': TextStyle(color: Color(0xff935c25)), 21 | 'literal': TextStyle(color: Color(0xff935c25)), 22 | 'type': TextStyle(color: Color(0xff935c25)), 23 | 'params': TextStyle(color: Color(0xff935c25)), 24 | 'string': TextStyle(color: Color(0xff568c3b)), 25 | 'symbol': TextStyle(color: Color(0xff568c3b)), 26 | 'bullet': TextStyle(color: Color(0xff568c3b)), 27 | 'title': TextStyle(color: Color(0xff257fad)), 28 | 'section': TextStyle(color: Color(0xff257fad)), 29 | 'keyword': TextStyle(color: Color(0xff6b6bb8)), 30 | 'selector-tag': TextStyle(color: Color(0xff6b6bb8)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xffebf8ff), color: Color(0xff516d7b)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-seaside-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierSeasideDarkTheme = { 6 | 'comment': TextStyle(color: Color(0xff809980)), 7 | 'quote': TextStyle(color: Color(0xff809980)), 8 | 'variable': TextStyle(color: Color(0xffe6193c)), 9 | 'template-variable': TextStyle(color: Color(0xffe6193c)), 10 | 'attribute': TextStyle(color: Color(0xffe6193c)), 11 | 'tag': TextStyle(color: Color(0xffe6193c)), 12 | 'name': TextStyle(color: Color(0xffe6193c)), 13 | 'regexp': TextStyle(color: Color(0xffe6193c)), 14 | 'link': TextStyle(color: Color(0xffe6193c)), 15 | 'selector-id': TextStyle(color: Color(0xffe6193c)), 16 | 'selector-class': TextStyle(color: Color(0xffe6193c)), 17 | 'number': TextStyle(color: Color(0xff87711d)), 18 | 'meta': TextStyle(color: Color(0xff87711d)), 19 | 'built_in': TextStyle(color: Color(0xff87711d)), 20 | 'builtin-name': TextStyle(color: Color(0xff87711d)), 21 | 'literal': TextStyle(color: Color(0xff87711d)), 22 | 'type': TextStyle(color: Color(0xff87711d)), 23 | 'params': TextStyle(color: Color(0xff87711d)), 24 | 'string': TextStyle(color: Color(0xff29a329)), 25 | 'symbol': TextStyle(color: Color(0xff29a329)), 26 | 'bullet': TextStyle(color: Color(0xff29a329)), 27 | 'title': TextStyle(color: Color(0xff3d62f5)), 28 | 'section': TextStyle(color: Color(0xff3d62f5)), 29 | 'keyword': TextStyle(color: Color(0xffad2bee)), 30 | 'selector-tag': TextStyle(color: Color(0xffad2bee)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xff131513), color: Color(0xff8ca68c)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-seaside-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierSeasideLightTheme = { 6 | 'comment': TextStyle(color: Color(0xff687d68)), 7 | 'quote': TextStyle(color: Color(0xff687d68)), 8 | 'variable': TextStyle(color: Color(0xffe6193c)), 9 | 'template-variable': TextStyle(color: Color(0xffe6193c)), 10 | 'attribute': TextStyle(color: Color(0xffe6193c)), 11 | 'tag': TextStyle(color: Color(0xffe6193c)), 12 | 'name': TextStyle(color: Color(0xffe6193c)), 13 | 'regexp': TextStyle(color: Color(0xffe6193c)), 14 | 'link': TextStyle(color: Color(0xffe6193c)), 15 | 'selector-id': TextStyle(color: Color(0xffe6193c)), 16 | 'selector-class': TextStyle(color: Color(0xffe6193c)), 17 | 'number': TextStyle(color: Color(0xff87711d)), 18 | 'meta': TextStyle(color: Color(0xff87711d)), 19 | 'built_in': TextStyle(color: Color(0xff87711d)), 20 | 'builtin-name': TextStyle(color: Color(0xff87711d)), 21 | 'literal': TextStyle(color: Color(0xff87711d)), 22 | 'type': TextStyle(color: Color(0xff87711d)), 23 | 'params': TextStyle(color: Color(0xff87711d)), 24 | 'string': TextStyle(color: Color(0xff29a329)), 25 | 'symbol': TextStyle(color: Color(0xff29a329)), 26 | 'bullet': TextStyle(color: Color(0xff29a329)), 27 | 'title': TextStyle(color: Color(0xff3d62f5)), 28 | 'section': TextStyle(color: Color(0xff3d62f5)), 29 | 'keyword': TextStyle(color: Color(0xffad2bee)), 30 | 'selector-tag': TextStyle(color: Color(0xffad2bee)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xfff4fbf4), color: Color(0xff5e6e5e)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-sulphurpool-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierSulphurpoolDarkTheme = { 6 | 'comment': TextStyle(color: Color(0xff898ea4)), 7 | 'quote': TextStyle(color: Color(0xff898ea4)), 8 | 'variable': TextStyle(color: Color(0xffc94922)), 9 | 'template-variable': TextStyle(color: Color(0xffc94922)), 10 | 'attribute': TextStyle(color: Color(0xffc94922)), 11 | 'tag': TextStyle(color: Color(0xffc94922)), 12 | 'name': TextStyle(color: Color(0xffc94922)), 13 | 'regexp': TextStyle(color: Color(0xffc94922)), 14 | 'link': TextStyle(color: Color(0xffc94922)), 15 | 'selector-id': TextStyle(color: Color(0xffc94922)), 16 | 'selector-class': TextStyle(color: Color(0xffc94922)), 17 | 'number': TextStyle(color: Color(0xffc76b29)), 18 | 'meta': TextStyle(color: Color(0xffc76b29)), 19 | 'built_in': TextStyle(color: Color(0xffc76b29)), 20 | 'builtin-name': TextStyle(color: Color(0xffc76b29)), 21 | 'literal': TextStyle(color: Color(0xffc76b29)), 22 | 'type': TextStyle(color: Color(0xffc76b29)), 23 | 'params': TextStyle(color: Color(0xffc76b29)), 24 | 'string': TextStyle(color: Color(0xffac9739)), 25 | 'symbol': TextStyle(color: Color(0xffac9739)), 26 | 'bullet': TextStyle(color: Color(0xffac9739)), 27 | 'title': TextStyle(color: Color(0xff3d8fd1)), 28 | 'section': TextStyle(color: Color(0xff3d8fd1)), 29 | 'keyword': TextStyle(color: Color(0xff6679cc)), 30 | 'selector-tag': TextStyle(color: Color(0xff6679cc)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xff202746), color: Color(0xff979db4)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/atelier-sulphurpool-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const atelierSulphurpoolLightTheme = { 6 | 'comment': TextStyle(color: Color(0xff6b7394)), 7 | 'quote': TextStyle(color: Color(0xff6b7394)), 8 | 'variable': TextStyle(color: Color(0xffc94922)), 9 | 'template-variable': TextStyle(color: Color(0xffc94922)), 10 | 'attribute': TextStyle(color: Color(0xffc94922)), 11 | 'tag': TextStyle(color: Color(0xffc94922)), 12 | 'name': TextStyle(color: Color(0xffc94922)), 13 | 'regexp': TextStyle(color: Color(0xffc94922)), 14 | 'link': TextStyle(color: Color(0xffc94922)), 15 | 'selector-id': TextStyle(color: Color(0xffc94922)), 16 | 'selector-class': TextStyle(color: Color(0xffc94922)), 17 | 'number': TextStyle(color: Color(0xffc76b29)), 18 | 'meta': TextStyle(color: Color(0xffc76b29)), 19 | 'built_in': TextStyle(color: Color(0xffc76b29)), 20 | 'builtin-name': TextStyle(color: Color(0xffc76b29)), 21 | 'literal': TextStyle(color: Color(0xffc76b29)), 22 | 'type': TextStyle(color: Color(0xffc76b29)), 23 | 'params': TextStyle(color: Color(0xffc76b29)), 24 | 'string': TextStyle(color: Color(0xffac9739)), 25 | 'symbol': TextStyle(color: Color(0xffac9739)), 26 | 'bullet': TextStyle(color: Color(0xffac9739)), 27 | 'title': TextStyle(color: Color(0xff3d8fd1)), 28 | 'section': TextStyle(color: Color(0xff3d8fd1)), 29 | 'keyword': TextStyle(color: Color(0xff6679cc)), 30 | 'selector-tag': TextStyle(color: Color(0xff6679cc)), 31 | 'root': 32 | TextStyle(backgroundColor: Color(0xfff5f7ff), color: Color(0xff5e6687)), 33 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 34 | 'strong': TextStyle(fontWeight: FontWeight.bold), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/brown-paper.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const brownPaperTheme = { 6 | 'root': 7 | TextStyle(color: Color(0xff363c69), backgroundColor: Color(0xffb7a68e)), 8 | 'keyword': TextStyle(color: Color(0xff005599), fontWeight: FontWeight.w700), 9 | 'literal': TextStyle(color: Color(0xff005599), fontWeight: FontWeight.w700), 10 | 'selector-tag': 11 | TextStyle(color: Color(0xff005599), fontWeight: FontWeight.w700), 12 | 'addition': TextStyle(color: Color(0xff2c009f)), 13 | 'attribute': TextStyle(color: Color(0xff2c009f)), 14 | 'built_in': TextStyle(color: Color(0xff2c009f)), 15 | 'bullet': TextStyle(color: Color(0xff2c009f)), 16 | 'link': TextStyle(color: Color(0xff2c009f)), 17 | 'name': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.w700), 18 | 'section': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.w700), 19 | 'string': TextStyle(color: Color(0xff2c009f)), 20 | 'symbol': TextStyle(color: Color(0xff2c009f)), 21 | 'template-tag': TextStyle(color: Color(0xff2c009f)), 22 | 'template-variable': TextStyle(color: Color(0xff2c009f)), 23 | 'title': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.w700), 24 | 'type': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.w700), 25 | 'variable': TextStyle(color: Color(0xff2c009f)), 26 | 'comment': TextStyle(color: Color(0xff802022)), 27 | 'deletion': TextStyle(color: Color(0xff802022)), 28 | 'meta': TextStyle(color: Color(0xff802022)), 29 | 'quote': TextStyle(color: Color(0xff802022)), 30 | 'doctag': TextStyle(fontWeight: FontWeight.w700), 31 | 'strong': TextStyle(fontWeight: FontWeight.w700), 32 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 33 | }; 34 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/codepen-embed.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const codepenEmbedTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff222222), color: Color(0xffffffff)), 8 | 'comment': TextStyle(color: Color(0xff777777)), 9 | 'quote': TextStyle(color: Color(0xff777777)), 10 | 'built_in': TextStyle(color: Color(0xffab875d)), 11 | 'bullet': TextStyle(color: Color(0xffab875d)), 12 | 'deletion': TextStyle(color: Color(0xffab875d)), 13 | 'link': TextStyle(color: Color(0xffab875d)), 14 | 'literal': TextStyle(color: Color(0xffab875d)), 15 | 'meta': TextStyle(color: Color(0xffab875d)), 16 | 'number': TextStyle(color: Color(0xffab875d)), 17 | 'params': TextStyle(color: Color(0xffab875d)), 18 | 'regexp': TextStyle(color: Color(0xffab875d)), 19 | 'symbol': TextStyle(color: Color(0xffab875d)), 20 | 'tag': TextStyle(color: Color(0xffab875d)), 21 | 'template-variable': TextStyle(color: Color(0xffab875d)), 22 | 'variable': TextStyle(color: Color(0xffab875d)), 23 | 'attribute': TextStyle(color: Color(0xff9b869b)), 24 | 'name': TextStyle(color: Color(0xff9b869b)), 25 | 'section': TextStyle(color: Color(0xff9b869b)), 26 | 'selector-class': TextStyle(color: Color(0xff9b869b)), 27 | 'selector-id': TextStyle(color: Color(0xff9b869b)), 28 | 'title': TextStyle(color: Color(0xff9b869b)), 29 | 'type': TextStyle(color: Color(0xff9b869b)), 30 | 'addition': TextStyle(color: Color(0xff8f9c6c)), 31 | 'keyword': TextStyle(color: Color(0xff8f9c6c)), 32 | 'selector-tag': TextStyle(color: Color(0xff8f9c6c)), 33 | 'string': TextStyle(color: Color(0xff8f9c6c)), 34 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 35 | 'strong': TextStyle(fontWeight: FontWeight.w700), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/color-brewer.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const colorBrewerTheme = { 6 | 'root': 7 | TextStyle(color: Color(0xff000000), backgroundColor: Color(0xffffffff)), 8 | 'addition': TextStyle(color: Color(0xff756bb1)), 9 | 'meta': TextStyle(color: Color(0xff756bb1)), 10 | 'string': TextStyle(color: Color(0xff756bb1)), 11 | 'symbol': TextStyle(color: Color(0xff756bb1)), 12 | 'template-tag': TextStyle(color: Color(0xff756bb1)), 13 | 'template-variable': TextStyle(color: Color(0xff756bb1)), 14 | 'comment': TextStyle(color: Color(0xff636363)), 15 | 'quote': TextStyle(color: Color(0xff636363)), 16 | 'bullet': TextStyle(color: Color(0xff31a354)), 17 | 'link': TextStyle(color: Color(0xff31a354)), 18 | 'literal': TextStyle(color: Color(0xff31a354)), 19 | 'number': TextStyle(color: Color(0xff31a354)), 20 | 'regexp': TextStyle(color: Color(0xff31a354)), 21 | 'deletion': TextStyle(color: Color(0xff8888ff)), 22 | 'variable': TextStyle(color: Color(0xff8888ff)), 23 | 'built_in': TextStyle(color: Color(0xff3182bd)), 24 | 'doctag': TextStyle(color: Color(0xff3182bd)), 25 | 'keyword': TextStyle(color: Color(0xff3182bd)), 26 | 'name': TextStyle(color: Color(0xff3182bd)), 27 | 'section': TextStyle(color: Color(0xff3182bd)), 28 | 'selector-class': TextStyle(color: Color(0xff3182bd)), 29 | 'selector-id': TextStyle(color: Color(0xff3182bd)), 30 | 'selector-tag': TextStyle(color: Color(0xff3182bd)), 31 | 'strong': TextStyle(color: Color(0xff3182bd)), 32 | 'tag': TextStyle(color: Color(0xff3182bd)), 33 | 'title': TextStyle(color: Color(0xff3182bd)), 34 | 'type': TextStyle(color: Color(0xff3182bd)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'attribute': TextStyle(color: Color(0xffe6550d)), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const darkTheme = { 6 | 'root': 7 | TextStyle(color: Color(0xffdddddd), backgroundColor: Color(0xff303030)), 8 | 'keyword': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 9 | 'link': TextStyle(color: Color(0xffffffff)), 10 | 'literal': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 11 | 'section': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 12 | 'selector-tag': 13 | TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 14 | 'addition': TextStyle(color: Color(0xffdd8888)), 15 | 'attribute': TextStyle(color: Color(0xffdd8888)), 16 | 'built_in': TextStyle(color: Color(0xffdd8888)), 17 | 'bullet': TextStyle(color: Color(0xffdd8888)), 18 | 'name': TextStyle(color: Color(0xffdd8888), fontWeight: FontWeight.w700), 19 | 'string': TextStyle(color: Color(0xffdd8888)), 20 | 'symbol': TextStyle(color: Color(0xffdd8888)), 21 | 'template-tag': TextStyle(color: Color(0xffdd8888)), 22 | 'template-variable': TextStyle(color: Color(0xffdd8888)), 23 | 'title': TextStyle(color: Color(0xffdd8888), fontWeight: FontWeight.w700), 24 | 'type': TextStyle(color: Color(0xffdd8888), fontWeight: FontWeight.w700), 25 | 'variable': TextStyle(color: Color(0xffdd8888)), 26 | 'comment': TextStyle(color: Color(0xff979797)), 27 | 'deletion': TextStyle(color: Color(0xff979797)), 28 | 'meta': TextStyle(color: Color(0xff979797)), 29 | 'quote': TextStyle(color: Color(0xff979797)), 30 | 'doctag': TextStyle(fontWeight: FontWeight.w700), 31 | 'strong': TextStyle(fontWeight: FontWeight.w700), 32 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 33 | }; 34 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/dracula.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const draculaTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff282a36), color: Color(0xfff8f8f2)), 8 | 'keyword': TextStyle(color: Color(0xff8be9fd), fontWeight: FontWeight.bold), 9 | 'selector-tag': 10 | TextStyle(color: Color(0xff8be9fd), fontWeight: FontWeight.bold), 11 | 'literal': TextStyle(color: Color(0xff8be9fd), fontWeight: FontWeight.bold), 12 | 'section': TextStyle(color: Color(0xff8be9fd), fontWeight: FontWeight.bold), 13 | 'link': TextStyle(color: Color(0xff8be9fd)), 14 | 'subst': TextStyle(color: Color(0xfff8f8f2)), 15 | 'string': TextStyle(color: Color(0xfff1fa8c)), 16 | 'title': TextStyle(color: Color(0xfff1fa8c), fontWeight: FontWeight.bold), 17 | 'name': TextStyle(color: Color(0xfff1fa8c), fontWeight: FontWeight.bold), 18 | 'type': TextStyle(color: Color(0xfff1fa8c), fontWeight: FontWeight.bold), 19 | 'attribute': TextStyle(color: Color(0xfff1fa8c)), 20 | 'symbol': TextStyle(color: Color(0xfff1fa8c)), 21 | 'bullet': TextStyle(color: Color(0xfff1fa8c)), 22 | 'addition': TextStyle(color: Color(0xfff1fa8c)), 23 | 'variable': TextStyle(color: Color(0xfff1fa8c)), 24 | 'template-tag': TextStyle(color: Color(0xfff1fa8c)), 25 | 'template-variable': TextStyle(color: Color(0xfff1fa8c)), 26 | 'comment': TextStyle(color: Color(0xff6272a4)), 27 | 'quote': TextStyle(color: Color(0xff6272a4)), 28 | 'deletion': TextStyle(color: Color(0xff6272a4)), 29 | 'meta': TextStyle(color: Color(0xff6272a4)), 30 | 'doctag': TextStyle(fontWeight: FontWeight.bold), 31 | 'strong': TextStyle(fontWeight: FontWeight.bold), 32 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 33 | }; 34 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/far.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const farTheme = { 6 | 'root': 7 | TextStyle(color: Color(0xff00ffff), backgroundColor: Color(0xff000080)), 8 | 'addition': TextStyle(color: Color(0xffffff00)), 9 | 'attribute': TextStyle(color: Color(0xffffff00)), 10 | 'built_in': TextStyle(color: Color(0xffffff00)), 11 | 'bullet': TextStyle(color: Color(0xffffff00)), 12 | 'string': TextStyle(color: Color(0xffffff00)), 13 | 'symbol': TextStyle(color: Color(0xffffff00)), 14 | 'template-tag': TextStyle(color: Color(0xffffff00)), 15 | 'template-variable': TextStyle(color: Color(0xffffff00)), 16 | 'keyword': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 17 | 'name': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 18 | 'section': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 19 | 'selector-class': TextStyle(color: Color(0xffffffff)), 20 | 'selector-id': TextStyle(color: Color(0xffffffff)), 21 | 'selector-tag': 22 | TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.w700), 23 | 'type': TextStyle(color: Color(0xffffffff)), 24 | 'variable': TextStyle(color: Color(0xffffffff)), 25 | 'comment': TextStyle(color: Color(0xff888888)), 26 | 'deletion': TextStyle(color: Color(0xff888888)), 27 | 'doctag': TextStyle(color: Color(0xff888888)), 28 | 'quote': TextStyle(color: Color(0xff888888)), 29 | 'link': TextStyle(color: Color(0xff00ff00)), 30 | 'literal': TextStyle(color: Color(0xff00ff00)), 31 | 'number': TextStyle(color: Color(0xff00ff00)), 32 | 'regexp': TextStyle(color: Color(0xff00ff00)), 33 | 'strong': TextStyle(fontWeight: FontWeight.w700), 34 | 'title': TextStyle(fontWeight: FontWeight.w700), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/foundation.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const foundationTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xffeeeeee), color: Color(0xff000000)), 8 | 'addition': TextStyle(color: Color(0xff007700)), 9 | 'attribute': TextStyle(color: Color(0xff007700)), 10 | 'emphasis': TextStyle(color: Color(0xff007700), fontStyle: FontStyle.italic), 11 | 'link': TextStyle(color: Color(0xff007700)), 12 | 'deletion': TextStyle(color: Color(0xffdd1144)), 13 | 'string': TextStyle(color: Color(0xffdd1144)), 14 | 'strong': TextStyle(color: Color(0xffdd1144), fontWeight: FontWeight.w700), 15 | 'comment': TextStyle(color: Color(0xff999988), fontStyle: FontStyle.italic), 16 | 'quote': TextStyle(color: Color(0xff999988), fontStyle: FontStyle.italic), 17 | 'section': TextStyle(color: Color(0xff990000)), 18 | 'title': TextStyle(color: Color(0xff990000)), 19 | 'title.class_': TextStyle(color: Color(0xff445588)), 20 | 'type': TextStyle(color: Color(0xff445588)), 21 | 'template-variable': TextStyle(color: Color(0xff336699)), 22 | 'variable': TextStyle(color: Color(0xff336699)), 23 | 'bullet': TextStyle(color: Color(0xff997700)), 24 | 'meta': TextStyle(color: Color(0xff3344bb)), 25 | 'code': TextStyle(color: Color(0xff009999)), 26 | 'keyword': TextStyle(color: Color(0xff009999)), 27 | 'literal': TextStyle(color: Color(0xff009999)), 28 | 'number': TextStyle(color: Color(0xff009999)), 29 | 'selector-tag': TextStyle(color: Color(0xff009999)), 30 | 'regexp': 31 | TextStyle(backgroundColor: Color(0xfffff0ff), color: Color(0xff880088)), 32 | 'symbol': TextStyle(color: Color(0xff990073)), 33 | 'name': TextStyle(color: Color(0xff007700)), 34 | 'selector-class': TextStyle(color: Color(0xff007700)), 35 | 'selector-id': TextStyle(color: Color(0xff007700)), 36 | 'tag': TextStyle(color: Color(0xff007700)), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/github-gist.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const githubGistTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xffffffff), color: Color(0xff333333)), 8 | 'comment': TextStyle(color: Color(0xff969896)), 9 | 'meta': TextStyle(color: Color(0xff969896)), 10 | 'variable': TextStyle(color: Color(0xffdf5000)), 11 | 'template-variable': TextStyle(color: Color(0xffdf5000)), 12 | 'strong': TextStyle(color: Color(0xffdf5000)), 13 | 'emphasis': TextStyle(color: Color(0xffdf5000)), 14 | 'quote': TextStyle(color: Color(0xffdf5000)), 15 | 'keyword': TextStyle(color: Color(0xffd73a49)), 16 | 'selector-tag': TextStyle(color: Color(0xffd73a49)), 17 | 'type': TextStyle(color: Color(0xffd73a49)), 18 | 'literal': TextStyle(color: Color(0xff0086b3)), 19 | 'symbol': TextStyle(color: Color(0xff0086b3)), 20 | 'bullet': TextStyle(color: Color(0xff0086b3)), 21 | 'attribute': TextStyle(color: Color(0xff0086b3)), 22 | 'section': TextStyle(color: Color(0xff63a35c)), 23 | 'name': TextStyle(color: Color(0xff63a35c)), 24 | 'tag': TextStyle(color: Color(0xff333333)), 25 | 'title': TextStyle(color: Color(0xff6f42c1)), 26 | 'attr': TextStyle(color: Color(0xff6f42c1)), 27 | 'selector-id': TextStyle(color: Color(0xff6f42c1)), 28 | 'selector-class': TextStyle(color: Color(0xff6f42c1)), 29 | 'selector-attr': TextStyle(color: Color(0xff6f42c1)), 30 | 'selector-pseudo': TextStyle(color: Color(0xff6f42c1)), 31 | 'addition': 32 | TextStyle(color: Color(0xff55a532), backgroundColor: Color(0xffeaffea)), 33 | 'deletion': 34 | TextStyle(color: Color(0xffbd2c00), backgroundColor: Color(0xffffecec)), 35 | 'number': TextStyle(color: Color(0xff005cc5)), 36 | 'string': TextStyle(color: Color(0xff032f62)), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/gml.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const gmlTheme = { 6 | 'root': TextStyle(backgroundColor: Color(0xff222222)), 7 | 'keyword': TextStyle(color: Color(0xffffb871), fontWeight: FontWeight.w700), 8 | 'built_in': TextStyle(color: Color(0xffffb871)), 9 | 'literal': TextStyle(color: Color(0xffff8080)), 10 | 'symbol': TextStyle(color: Color(0xff58e55a)), 11 | 'comment': TextStyle(color: Color(0xff5b995b)), 12 | 'string': TextStyle(color: Color(0xffffff00)), 13 | 'number': TextStyle(color: Color(0xffff8080)), 14 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 15 | 'strong': TextStyle(fontWeight: FontWeight.w700), 16 | }; 17 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/hopscotch.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const hopscotchTheme = { 6 | 'comment': TextStyle(color: Color(0xff989498)), 7 | 'quote': TextStyle(color: Color(0xff989498)), 8 | 'variable': TextStyle(color: Color(0xffdd464c)), 9 | 'template-variable': TextStyle(color: Color(0xffdd464c)), 10 | 'attribute': TextStyle(color: Color(0xffdd464c)), 11 | 'tag': TextStyle(color: Color(0xffdd464c)), 12 | 'name': TextStyle(color: Color(0xffdd464c)), 13 | 'selector-id': TextStyle(color: Color(0xffdd464c)), 14 | 'selector-class': TextStyle(color: Color(0xffdd464c)), 15 | 'regexp': TextStyle(color: Color(0xffdd464c)), 16 | 'link': TextStyle(color: Color(0xffdd464c)), 17 | 'deletion': TextStyle(color: Color(0xffdd464c)), 18 | 'number': TextStyle(color: Color(0xfffd8b19)), 19 | 'built_in': TextStyle(color: Color(0xfffd8b19)), 20 | 'builtin-name': TextStyle(color: Color(0xfffd8b19)), 21 | 'literal': TextStyle(color: Color(0xfffd8b19)), 22 | 'type': TextStyle(color: Color(0xfffd8b19)), 23 | 'params': TextStyle(color: Color(0xfffd8b19)), 24 | 'string': TextStyle(color: Color(0xff8fc13e)), 25 | 'symbol': TextStyle(color: Color(0xff8fc13e)), 26 | 'bullet': TextStyle(color: Color(0xff8fc13e)), 27 | 'addition': TextStyle(color: Color(0xff8fc13e)), 28 | 'meta': TextStyle(color: Color(0xff149b93)), 29 | 'function': TextStyle(color: Color(0xff1290bf)), 30 | 'section': TextStyle(color: Color(0xff1290bf)), 31 | 'title': TextStyle(color: Color(0xff1290bf)), 32 | 'keyword': TextStyle(color: Color(0xffc85e7c)), 33 | 'selector-tag': TextStyle(color: Color(0xffc85e7c)), 34 | 'root': 35 | TextStyle(backgroundColor: Color(0xff322931), color: Color(0xffb9b5b8)), 36 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 37 | 'strong': TextStyle(fontWeight: FontWeight.bold), 38 | }; 39 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/ir-black.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const irBlackTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff000000), color: Color(0xfff8f8f8)), 8 | 'comment': TextStyle(color: Color(0xff7c7c7c)), 9 | 'meta': TextStyle(color: Color(0xff7c7c7c)), 10 | 'quote': TextStyle(color: Color(0xff7c7c7c)), 11 | 'keyword': TextStyle(color: Color(0xff96cbfe)), 12 | 'name': TextStyle(color: Color(0xff96cbfe)), 13 | 'selector-tag': TextStyle(color: Color(0xff96cbfe)), 14 | 'tag': TextStyle(color: Color(0xff96cbfe)), 15 | 'attribute': TextStyle(color: Color(0xffffffb6)), 16 | 'selector-id': TextStyle(color: Color(0xffffffb6)), 17 | 'addition': TextStyle(color: Color(0xffa8ff60)), 18 | 'selector-attr': TextStyle(color: Color(0xffa8ff60)), 19 | 'selector-pseudo': TextStyle(color: Color(0xffa8ff60)), 20 | 'string': TextStyle(color: Color(0xffa8ff60)), 21 | 'subst': TextStyle(color: Color(0xffdaefa3)), 22 | 'link': TextStyle(color: Color(0xffe9c062)), 23 | 'regexp': TextStyle(color: Color(0xffe9c062)), 24 | 'doctag': TextStyle(color: Color(0xffffffb6)), 25 | 'section': TextStyle(color: Color(0xffffffb6)), 26 | 'title': TextStyle(color: Color(0xffffffb6)), 27 | 'type': TextStyle(color: Color(0xffffffb6)), 28 | 'bullet': TextStyle(color: Color(0xffc6c5fe)), 29 | 'literal': TextStyle(color: Color(0xffc6c5fe)), 30 | 'symbol': TextStyle(color: Color(0xffc6c5fe)), 31 | 'template-variable': TextStyle(color: Color(0xffc6c5fe)), 32 | 'variable': TextStyle(color: Color(0xffc6c5fe)), 33 | 'deletion': TextStyle(color: Color(0xffff73fd)), 34 | 'number': TextStyle(color: Color(0xffff73fd)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.w700), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/kimbie-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const kimbieDarkTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff221a0f), color: Color(0xffd3af86)), 8 | 'comment': TextStyle(color: Color(0xffd6baad)), 9 | 'quote': TextStyle(color: Color(0xffd6baad)), 10 | 'meta': TextStyle(color: Color(0xffdc3958)), 11 | 'name': TextStyle(color: Color(0xffdc3958)), 12 | 'regexp': TextStyle(color: Color(0xffdc3958)), 13 | 'selector-class': TextStyle(color: Color(0xffdc3958)), 14 | 'selector-id': TextStyle(color: Color(0xffdc3958)), 15 | 'tag': TextStyle(color: Color(0xffdc3958)), 16 | 'template-variable': TextStyle(color: Color(0xffdc3958)), 17 | 'variable': TextStyle(color: Color(0xffdc3958)), 18 | 'built_in': TextStyle(color: Color(0xfff79a32)), 19 | 'deletion': TextStyle(color: Color(0xfff79a32)), 20 | 'link': TextStyle(color: Color(0xfff79a32)), 21 | 'literal': TextStyle(color: Color(0xfff79a32)), 22 | 'number': TextStyle(color: Color(0xfff79a32)), 23 | 'params': TextStyle(color: Color(0xfff79a32)), 24 | 'type': TextStyle(color: Color(0xfff79a32)), 25 | 'addition': TextStyle(color: Color(0xff889b4a)), 26 | 'bullet': TextStyle(color: Color(0xff889b4a)), 27 | 'string': TextStyle(color: Color(0xff889b4a)), 28 | 'symbol': TextStyle(color: Color(0xff889b4a)), 29 | 'function': TextStyle(color: Color(0xff98676a)), 30 | 'keyword': TextStyle(color: Color(0xff98676a)), 31 | 'selector-tag': TextStyle(color: Color(0xff98676a)), 32 | 'attribute': TextStyle(color: Color(0xfff06431)), 33 | 'section': TextStyle(color: Color(0xfff06431)), 34 | 'title': TextStyle(color: Color(0xfff06431)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.w700), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/kimbie-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const kimbieLightTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xfffbebd4), color: Color(0xff84613d)), 8 | 'comment': TextStyle(color: Color(0xffa57a4c)), 9 | 'quote': TextStyle(color: Color(0xffa57a4c)), 10 | 'meta': TextStyle(color: Color(0xffdc3958)), 11 | 'name': TextStyle(color: Color(0xffdc3958)), 12 | 'regexp': TextStyle(color: Color(0xffdc3958)), 13 | 'selector-class': TextStyle(color: Color(0xffdc3958)), 14 | 'selector-id': TextStyle(color: Color(0xffdc3958)), 15 | 'tag': TextStyle(color: Color(0xffdc3958)), 16 | 'template-variable': TextStyle(color: Color(0xffdc3958)), 17 | 'variable': TextStyle(color: Color(0xffdc3958)), 18 | 'built_in': TextStyle(color: Color(0xfff79a32)), 19 | 'deletion': TextStyle(color: Color(0xfff79a32)), 20 | 'link': TextStyle(color: Color(0xfff79a32)), 21 | 'literal': TextStyle(color: Color(0xfff79a32)), 22 | 'number': TextStyle(color: Color(0xfff79a32)), 23 | 'params': TextStyle(color: Color(0xfff79a32)), 24 | 'type': TextStyle(color: Color(0xfff79a32)), 25 | 'addition': TextStyle(color: Color(0xff889b4a)), 26 | 'bullet': TextStyle(color: Color(0xff889b4a)), 27 | 'string': TextStyle(color: Color(0xff889b4a)), 28 | 'symbol': TextStyle(color: Color(0xff889b4a)), 29 | 'function': TextStyle(color: Color(0xff98676a)), 30 | 'keyword': TextStyle(color: Color(0xff98676a)), 31 | 'selector-tag': TextStyle(color: Color(0xff98676a)), 32 | 'attribute': TextStyle(color: Color(0xfff06431)), 33 | 'section': TextStyle(color: Color(0xfff06431)), 34 | 'title': TextStyle(color: Color(0xfff06431)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.w700), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/kimbie.dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const kimbieDarkTheme = { 6 | 'comment': TextStyle(color: Color(0xffd6baad)), 7 | 'quote': TextStyle(color: Color(0xffd6baad)), 8 | 'variable': TextStyle(color: Color(0xffdc3958)), 9 | 'template-variable': TextStyle(color: Color(0xffdc3958)), 10 | 'tag': TextStyle(color: Color(0xffdc3958)), 11 | 'name': TextStyle(color: Color(0xffdc3958)), 12 | 'selector-id': TextStyle(color: Color(0xffdc3958)), 13 | 'selector-class': TextStyle(color: Color(0xffdc3958)), 14 | 'regexp': TextStyle(color: Color(0xffdc3958)), 15 | 'meta': TextStyle(color: Color(0xffdc3958)), 16 | 'number': TextStyle(color: Color(0xfff79a32)), 17 | 'built_in': TextStyle(color: Color(0xfff79a32)), 18 | 'builtin-name': TextStyle(color: Color(0xfff79a32)), 19 | 'literal': TextStyle(color: Color(0xfff79a32)), 20 | 'type': TextStyle(color: Color(0xfff79a32)), 21 | 'params': TextStyle(color: Color(0xfff79a32)), 22 | 'deletion': TextStyle(color: Color(0xfff79a32)), 23 | 'link': TextStyle(color: Color(0xfff79a32)), 24 | 'title': TextStyle(color: Color(0xfff06431)), 25 | 'section': TextStyle(color: Color(0xfff06431)), 26 | 'attribute': TextStyle(color: Color(0xfff06431)), 27 | 'string': TextStyle(color: Color(0xff889b4a)), 28 | 'symbol': TextStyle(color: Color(0xff889b4a)), 29 | 'bullet': TextStyle(color: Color(0xff889b4a)), 30 | 'addition': TextStyle(color: Color(0xff889b4a)), 31 | 'keyword': TextStyle(color: Color(0xff98676a)), 32 | 'selector-tag': TextStyle(color: Color(0xff98676a)), 33 | 'function': TextStyle(color: Color(0xff98676a)), 34 | 'root': 35 | TextStyle(backgroundColor: Color(0xff221a0f), color: Color(0xffd3af86)), 36 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 37 | 'strong': TextStyle(fontWeight: FontWeight.bold), 38 | }; 39 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/kimbie.light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const kimbieLightTheme = { 6 | 'comment': TextStyle(color: Color(0xffa57a4c)), 7 | 'quote': TextStyle(color: Color(0xffa57a4c)), 8 | 'variable': TextStyle(color: Color(0xffdc3958)), 9 | 'template-variable': TextStyle(color: Color(0xffdc3958)), 10 | 'tag': TextStyle(color: Color(0xffdc3958)), 11 | 'name': TextStyle(color: Color(0xffdc3958)), 12 | 'selector-id': TextStyle(color: Color(0xffdc3958)), 13 | 'selector-class': TextStyle(color: Color(0xffdc3958)), 14 | 'regexp': TextStyle(color: Color(0xffdc3958)), 15 | 'meta': TextStyle(color: Color(0xffdc3958)), 16 | 'number': TextStyle(color: Color(0xfff79a32)), 17 | 'built_in': TextStyle(color: Color(0xfff79a32)), 18 | 'builtin-name': TextStyle(color: Color(0xfff79a32)), 19 | 'literal': TextStyle(color: Color(0xfff79a32)), 20 | 'type': TextStyle(color: Color(0xfff79a32)), 21 | 'params': TextStyle(color: Color(0xfff79a32)), 22 | 'deletion': TextStyle(color: Color(0xfff79a32)), 23 | 'link': TextStyle(color: Color(0xfff79a32)), 24 | 'title': TextStyle(color: Color(0xfff06431)), 25 | 'section': TextStyle(color: Color(0xfff06431)), 26 | 'attribute': TextStyle(color: Color(0xfff06431)), 27 | 'string': TextStyle(color: Color(0xff889b4a)), 28 | 'symbol': TextStyle(color: Color(0xff889b4a)), 29 | 'bullet': TextStyle(color: Color(0xff889b4a)), 30 | 'addition': TextStyle(color: Color(0xff889b4a)), 31 | 'keyword': TextStyle(color: Color(0xff98676a)), 32 | 'selector-tag': TextStyle(color: Color(0xff98676a)), 33 | 'function': TextStyle(color: Color(0xff98676a)), 34 | 'root': 35 | TextStyle(backgroundColor: Color(0xfffbebd4), color: Color(0xff84613d)), 36 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 37 | 'strong': TextStyle(fontWeight: FontWeight.bold), 38 | }; 39 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/lioshi.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const lioshiTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff303030), color: Color(0xffc5c8c6)), 8 | 'comment': TextStyle(color: Color(0xff8d8d8d)), 9 | 'quote': TextStyle(color: Color(0xffb3c7d8)), 10 | 'deletion': TextStyle(color: Color(0xffcc6666)), 11 | 'name': TextStyle(color: Color(0xffcc6666)), 12 | 'regexp': TextStyle(color: Color(0xffcc6666)), 13 | 'selector-class': TextStyle(color: Color(0xffcc6666)), 14 | 'selector-id': TextStyle(color: Color(0xffcc6666)), 15 | 'tag': TextStyle(color: Color(0xffcc6666)), 16 | 'template-variable': TextStyle(color: Color(0xffcc6666)), 17 | 'variable': TextStyle(color: Color(0xffcc6666)), 18 | 'built_in': TextStyle(color: Color(0xffde935f)), 19 | 'literal': TextStyle(color: Color(0xffde935f)), 20 | 'number': TextStyle(color: Color(0xffde935f)), 21 | 'type': TextStyle(color: Color(0xffde935f)), 22 | 'attribute': TextStyle(color: Color(0xfff0c674)), 23 | 'addition': TextStyle(color: Color(0xffb5bd68)), 24 | 'bullet': TextStyle(color: Color(0xffb5bd68)), 25 | 'params': TextStyle(color: Color(0xffb5bd68)), 26 | 'string': TextStyle(color: Color(0xffb5bd68)), 27 | 'class': TextStyle(color: Color(0xffbe94bb)), 28 | 'function': TextStyle(color: Color(0xffbe94bb)), 29 | 'keyword': TextStyle(color: Color(0xffbe94bb)), 30 | 'selector-tag': TextStyle(color: Color(0xffbe94bb)), 31 | 'meta': TextStyle(color: Color(0xff81a2be)), 32 | 'section': TextStyle(color: Color(0xff81a2be)), 33 | 'title': TextStyle(color: Color(0xff81a2be)), 34 | 'symbol': TextStyle(color: Color(0xffdbc4d9)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.w700), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/mono-blue.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const monoBlueTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xffeaeef3), color: Color(0xff00193a)), 8 | 'doctag': TextStyle(fontWeight: FontWeight.w700), 9 | 'keyword': TextStyle(fontWeight: FontWeight.w700), 10 | 'name': TextStyle(fontWeight: FontWeight.w700, color: Color(0xff0048ab)), 11 | 'section': TextStyle(fontWeight: FontWeight.w700, color: Color(0xff0048ab)), 12 | 'selector-tag': TextStyle(fontWeight: FontWeight.w700), 13 | 'strong': TextStyle(fontWeight: FontWeight.w700), 14 | 'title': TextStyle(fontWeight: FontWeight.w700, color: Color(0xff0048ab)), 15 | 'comment': TextStyle(color: Color(0xff738191)), 16 | 'addition': TextStyle(color: Color(0xff0048ab)), 17 | 'built_in': TextStyle(color: Color(0xff0048ab)), 18 | 'literal': TextStyle(color: Color(0xff0048ab)), 19 | 'quote': TextStyle(color: Color(0xff0048ab)), 20 | 'selector-class': TextStyle(color: Color(0xff0048ab)), 21 | 'selector-id': TextStyle(color: Color(0xff0048ab)), 22 | 'string': TextStyle(color: Color(0xff0048ab)), 23 | 'tag': TextStyle(color: Color(0xff0048ab)), 24 | 'type': TextStyle(color: Color(0xff0048ab)), 25 | 'attribute': TextStyle(color: Color(0xff4c81c9)), 26 | 'bullet': TextStyle(color: Color(0xff4c81c9)), 27 | 'deletion': TextStyle(color: Color(0xff4c81c9)), 28 | 'link': TextStyle(color: Color(0xff4c81c9)), 29 | 'meta': TextStyle(color: Color(0xff4c81c9)), 30 | 'regexp': TextStyle(color: Color(0xff4c81c9)), 31 | 'subst': TextStyle(color: Color(0xff4c81c9)), 32 | 'symbol': TextStyle(color: Color(0xff4c81c9)), 33 | 'template-variable': TextStyle(color: Color(0xff4c81c9)), 34 | 'variable': TextStyle(color: Color(0xff4c81c9)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/ocean.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const oceanTheme = { 6 | 'comment': TextStyle(color: Color(0xff65737e)), 7 | 'quote': TextStyle(color: Color(0xff65737e)), 8 | 'variable': TextStyle(color: Color(0xffbf616a)), 9 | 'template-variable': TextStyle(color: Color(0xffbf616a)), 10 | 'tag': TextStyle(color: Color(0xffbf616a)), 11 | 'name': TextStyle(color: Color(0xffbf616a)), 12 | 'selector-id': TextStyle(color: Color(0xffbf616a)), 13 | 'selector-class': TextStyle(color: Color(0xffbf616a)), 14 | 'regexp': TextStyle(color: Color(0xffbf616a)), 15 | 'deletion': TextStyle(color: Color(0xffbf616a)), 16 | 'number': TextStyle(color: Color(0xffd08770)), 17 | 'built_in': TextStyle(color: Color(0xffd08770)), 18 | 'builtin-name': TextStyle(color: Color(0xffd08770)), 19 | 'literal': TextStyle(color: Color(0xffd08770)), 20 | 'type': TextStyle(color: Color(0xffd08770)), 21 | 'params': TextStyle(color: Color(0xffd08770)), 22 | 'meta': TextStyle(color: Color(0xffd08770)), 23 | 'link': TextStyle(color: Color(0xffd08770)), 24 | 'attribute': TextStyle(color: Color(0xffebcb8b)), 25 | 'string': TextStyle(color: Color(0xffa3be8c)), 26 | 'symbol': TextStyle(color: Color(0xffa3be8c)), 27 | 'bullet': TextStyle(color: Color(0xffa3be8c)), 28 | 'addition': TextStyle(color: Color(0xffa3be8c)), 29 | 'title': TextStyle(color: Color(0xff8fa1b3)), 30 | 'section': TextStyle(color: Color(0xff8fa1b3)), 31 | 'keyword': TextStyle(color: Color(0xffb48ead)), 32 | 'selector-tag': TextStyle(color: Color(0xffb48ead)), 33 | 'root': 34 | TextStyle(backgroundColor: Color(0xff2b303b), color: Color(0xffc0c5ce)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.bold), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/paraiso-dark.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const paraisoDarkTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff2f1e2e), color: Color(0xffa39e9b)), 8 | 'comment': TextStyle(color: Color(0xff8d8687)), 9 | 'quote': TextStyle(color: Color(0xff8d8687)), 10 | 'link': TextStyle(color: Color(0xffef6155)), 11 | 'meta': TextStyle(color: Color(0xffef6155)), 12 | 'name': TextStyle(color: Color(0xffef6155)), 13 | 'regexp': TextStyle(color: Color(0xffef6155)), 14 | 'selector-class': TextStyle(color: Color(0xffef6155)), 15 | 'selector-id': TextStyle(color: Color(0xffef6155)), 16 | 'tag': TextStyle(color: Color(0xffef6155)), 17 | 'template-variable': TextStyle(color: Color(0xffef6155)), 18 | 'variable': TextStyle(color: Color(0xffef6155)), 19 | 'built_in': TextStyle(color: Color(0xfff99b15)), 20 | 'deletion': TextStyle(color: Color(0xfff99b15)), 21 | 'literal': TextStyle(color: Color(0xfff99b15)), 22 | 'number': TextStyle(color: Color(0xfff99b15)), 23 | 'params': TextStyle(color: Color(0xfff99b15)), 24 | 'type': TextStyle(color: Color(0xfff99b15)), 25 | 'attribute': TextStyle(color: Color(0xfffec418)), 26 | 'section': TextStyle(color: Color(0xfffec418)), 27 | 'title': TextStyle(color: Color(0xfffec418)), 28 | 'addition': TextStyle(color: Color(0xff48b685)), 29 | 'bullet': TextStyle(color: Color(0xff48b685)), 30 | 'string': TextStyle(color: Color(0xff48b685)), 31 | 'symbol': TextStyle(color: Color(0xff48b685)), 32 | 'keyword': TextStyle(color: Color(0xff815ba4)), 33 | 'selector-tag': TextStyle(color: Color(0xff815ba4)), 34 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 35 | 'strong': TextStyle(fontWeight: FontWeight.w700), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/paraiso-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const paraisoLightTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xffe7e9db), color: Color(0xff4f424c)), 8 | 'comment': TextStyle(color: Color(0xff776e71)), 9 | 'quote': TextStyle(color: Color(0xff776e71)), 10 | 'link': TextStyle(color: Color(0xffef6155)), 11 | 'meta': TextStyle(color: Color(0xffef6155)), 12 | 'name': TextStyle(color: Color(0xffef6155)), 13 | 'regexp': TextStyle(color: Color(0xffef6155)), 14 | 'selector-class': TextStyle(color: Color(0xffef6155)), 15 | 'selector-id': TextStyle(color: Color(0xffef6155)), 16 | 'tag': TextStyle(color: Color(0xffef6155)), 17 | 'template-variable': TextStyle(color: Color(0xffef6155)), 18 | 'variable': TextStyle(color: Color(0xffef6155)), 19 | 'built_in': TextStyle(color: Color(0xfff99b15)), 20 | 'deletion': TextStyle(color: Color(0xfff99b15)), 21 | 'literal': TextStyle(color: Color(0xfff99b15)), 22 | 'number': TextStyle(color: Color(0xfff99b15)), 23 | 'params': TextStyle(color: Color(0xfff99b15)), 24 | 'type': TextStyle(color: Color(0xfff99b15)), 25 | 'attribute': TextStyle(color: Color(0xfffec418)), 26 | 'section': TextStyle(color: Color(0xfffec418)), 27 | 'title': TextStyle(color: Color(0xfffec418)), 28 | 'addition': TextStyle(color: Color(0xff48b685)), 29 | 'bullet': TextStyle(color: Color(0xff48b685)), 30 | 'string': TextStyle(color: Color(0xff48b685)), 31 | 'symbol': TextStyle(color: Color(0xff48b685)), 32 | 'keyword': TextStyle(color: Color(0xff815ba4)), 33 | 'selector-tag': TextStyle(color: Color(0xff815ba4)), 34 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 35 | 'strong': TextStyle(fontWeight: FontWeight.w700), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/qtcreator-light.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const qtcreatorLightTheme = { 6 | 'root': 7 | TextStyle(color: Color(0xff000000), backgroundColor: Color(0xffffffff)), 8 | 'emphasis': TextStyle(color: Color(0xff000000), fontStyle: FontStyle.italic), 9 | 'strong': TextStyle(color: Color(0xff000000)), 10 | 'bullet': TextStyle(color: Color(0xff000080)), 11 | 'literal': TextStyle(color: Color(0xff000080)), 12 | 'number': TextStyle(color: Color(0xff000080)), 13 | 'quote': TextStyle(color: Color(0xff000080)), 14 | 'regexp': TextStyle(color: Color(0xff000080)), 15 | 'stronge': TextStyle(fontStyle: FontStyle.italic), 16 | 'type': TextStyle(fontStyle: FontStyle.italic), 17 | 'subst': TextStyle(color: Color(0xff000000)), 18 | 'tag': TextStyle(color: Color(0xff000000)), 19 | 'title': TextStyle(color: Color(0xff000000)), 20 | 'params': TextStyle(color: Color(0xff0055af)), 21 | 'title.class_': TextStyle(color: Color(0xff0055af)), 22 | 'variable': TextStyle(color: Color(0xff0055af)), 23 | }; 24 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/school-book.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const schoolBookTheme = { 6 | 'root': 7 | TextStyle(color: Color(0xff3e5915), backgroundColor: Color(0xfff6f5b2)), 8 | 'keyword': TextStyle(color: Color(0xff005599), fontWeight: FontWeight.w700), 9 | 'literal': TextStyle(color: Color(0xff005599), fontWeight: FontWeight.w700), 10 | 'selector-tag': 11 | TextStyle(color: Color(0xff005599), fontWeight: FontWeight.w700), 12 | 'subst': TextStyle(color: Color(0xff3e5915)), 13 | 'addition': TextStyle(color: Color(0xff2c009f)), 14 | 'attribute': TextStyle(color: Color(0xff2c009f)), 15 | 'built_in': TextStyle(color: Color(0xff2c009f)), 16 | 'bullet': TextStyle(color: Color(0xff2c009f)), 17 | 'link': TextStyle(color: Color(0xff2c009f)), 18 | 'section': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.w700), 19 | 'string': TextStyle(color: Color(0xff2c009f)), 20 | 'symbol': TextStyle(color: Color(0xff2c009f)), 21 | 'template-tag': TextStyle(color: Color(0xff2c009f)), 22 | 'template-variable': TextStyle(color: Color(0xff2c009f)), 23 | 'title': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.w700), 24 | 'type': TextStyle(color: Color(0xff2c009f), fontWeight: FontWeight.w700), 25 | 'variable': TextStyle(color: Color(0xff2c009f)), 26 | 'comment': TextStyle(color: Color(0xffe60415)), 27 | 'deletion': TextStyle(color: Color(0xffe60415)), 28 | 'meta': TextStyle(color: Color(0xffe60415)), 29 | 'quote': TextStyle(color: Color(0xffe60415)), 30 | 'doctag': TextStyle(fontWeight: FontWeight.w700), 31 | 'name': TextStyle(fontWeight: FontWeight.w700), 32 | 'selector-id': TextStyle(fontWeight: FontWeight.w700), 33 | 'strong': TextStyle(fontWeight: FontWeight.w700), 34 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 35 | }; 36 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/tomorrow-night-blue.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const tomorrowNightBlueTheme = { 6 | 'comment': TextStyle(color: Color(0xff7285b7)), 7 | 'quote': TextStyle(color: Color(0xff7285b7)), 8 | 'deletion': TextStyle(color: Color(0xffff9da4)), 9 | 'name': TextStyle(color: Color(0xffff9da4)), 10 | 'regexp': TextStyle(color: Color(0xffff9da4)), 11 | 'selector-class': TextStyle(color: Color(0xffff9da4)), 12 | 'selector-id': TextStyle(color: Color(0xffff9da4)), 13 | 'tag': TextStyle(color: Color(0xffff9da4)), 14 | 'template-variable': TextStyle(color: Color(0xffff9da4)), 15 | 'variable': TextStyle(color: Color(0xffff9da4)), 16 | 'built_in': TextStyle(color: Color(0xffffc58f)), 17 | 'link': TextStyle(color: Color(0xffffc58f)), 18 | 'literal': TextStyle(color: Color(0xffffc58f)), 19 | 'meta': TextStyle(color: Color(0xffffc58f)), 20 | 'number': TextStyle(color: Color(0xffffc58f)), 21 | 'params': TextStyle(color: Color(0xffffc58f)), 22 | 'type': TextStyle(color: Color(0xffffc58f)), 23 | 'attribute': TextStyle(color: Color(0xffffeead)), 24 | 'addition': TextStyle(color: Color(0xffd1f1a9)), 25 | 'bullet': TextStyle(color: Color(0xffd1f1a9)), 26 | 'string': TextStyle(color: Color(0xffd1f1a9)), 27 | 'symbol': TextStyle(color: Color(0xffd1f1a9)), 28 | 'section': TextStyle(color: Color(0xffbbdaff)), 29 | 'title': TextStyle(color: Color(0xffbbdaff)), 30 | 'keyword': TextStyle(color: Color(0xffebbbff)), 31 | 'selector-tag': TextStyle(color: Color(0xffebbbff)), 32 | 'root': 33 | TextStyle(backgroundColor: Color(0xff002451), color: Color(0xffffffff)), 34 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 35 | 'strong': TextStyle(fontWeight: FontWeight.w700), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/tomorrow-night-bright.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const tomorrowNightBrightTheme = { 6 | 'comment': TextStyle(color: Color(0xff969896)), 7 | 'quote': TextStyle(color: Color(0xff969896)), 8 | 'deletion': TextStyle(color: Color(0xffd54e53)), 9 | 'name': TextStyle(color: Color(0xffd54e53)), 10 | 'regexp': TextStyle(color: Color(0xffd54e53)), 11 | 'selector-class': TextStyle(color: Color(0xffd54e53)), 12 | 'selector-id': TextStyle(color: Color(0xffd54e53)), 13 | 'tag': TextStyle(color: Color(0xffd54e53)), 14 | 'template-variable': TextStyle(color: Color(0xffd54e53)), 15 | 'variable': TextStyle(color: Color(0xffd54e53)), 16 | 'built_in': TextStyle(color: Color(0xffe78c45)), 17 | 'link': TextStyle(color: Color(0xffe78c45)), 18 | 'literal': TextStyle(color: Color(0xffe78c45)), 19 | 'meta': TextStyle(color: Color(0xffe78c45)), 20 | 'number': TextStyle(color: Color(0xffe78c45)), 21 | 'params': TextStyle(color: Color(0xffe78c45)), 22 | 'type': TextStyle(color: Color(0xffe78c45)), 23 | 'attribute': TextStyle(color: Color(0xffe7c547)), 24 | 'addition': TextStyle(color: Color(0xffb9ca4a)), 25 | 'bullet': TextStyle(color: Color(0xffb9ca4a)), 26 | 'string': TextStyle(color: Color(0xffb9ca4a)), 27 | 'symbol': TextStyle(color: Color(0xffb9ca4a)), 28 | 'section': TextStyle(color: Color(0xff7aa6da)), 29 | 'title': TextStyle(color: Color(0xff7aa6da)), 30 | 'keyword': TextStyle(color: Color(0xffc397d8)), 31 | 'selector-tag': TextStyle(color: Color(0xffc397d8)), 32 | 'root': 33 | TextStyle(backgroundColor: Color(0xff000000), color: Color(0xffeaeaea)), 34 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 35 | 'strong': TextStyle(fontWeight: FontWeight.w700), 36 | }; 37 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/tomorrow-night-eighties.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const tomorrowNightEightiesTheme = { 6 | 'comment': TextStyle(color: Color(0xff999999)), 7 | 'quote': TextStyle(color: Color(0xff999999)), 8 | 'variable': TextStyle(color: Color(0xfff2777a)), 9 | 'template-variable': TextStyle(color: Color(0xfff2777a)), 10 | 'tag': TextStyle(color: Color(0xfff2777a)), 11 | 'name': TextStyle(color: Color(0xfff2777a)), 12 | 'selector-id': TextStyle(color: Color(0xfff2777a)), 13 | 'selector-class': TextStyle(color: Color(0xfff2777a)), 14 | 'regexp': TextStyle(color: Color(0xfff2777a)), 15 | 'deletion': TextStyle(color: Color(0xfff2777a)), 16 | 'number': TextStyle(color: Color(0xfff99157)), 17 | 'built_in': TextStyle(color: Color(0xfff99157)), 18 | 'builtin-name': TextStyle(color: Color(0xfff99157)), 19 | 'literal': TextStyle(color: Color(0xfff99157)), 20 | 'type': TextStyle(color: Color(0xfff99157)), 21 | 'params': TextStyle(color: Color(0xfff99157)), 22 | 'meta': TextStyle(color: Color(0xfff99157)), 23 | 'link': TextStyle(color: Color(0xfff99157)), 24 | 'attribute': TextStyle(color: Color(0xffffcc66)), 25 | 'string': TextStyle(color: Color(0xff99cc99)), 26 | 'symbol': TextStyle(color: Color(0xff99cc99)), 27 | 'bullet': TextStyle(color: Color(0xff99cc99)), 28 | 'addition': TextStyle(color: Color(0xff99cc99)), 29 | 'title': TextStyle(color: Color(0xff6699cc)), 30 | 'section': TextStyle(color: Color(0xff6699cc)), 31 | 'keyword': TextStyle(color: Color(0xffcc99cc)), 32 | 'selector-tag': TextStyle(color: Color(0xffcc99cc)), 33 | 'root': 34 | TextStyle(backgroundColor: Color(0xff2d2d2d), color: Color(0xffcccccc)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.bold), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/tomorrow-night.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const tomorrowNightTheme = { 6 | 'comment': TextStyle(color: Color(0xff969896)), 7 | 'quote': TextStyle(color: Color(0xff969896)), 8 | 'variable': TextStyle(color: Color(0xffcc6666)), 9 | 'template-variable': TextStyle(color: Color(0xffcc6666)), 10 | 'tag': TextStyle(color: Color(0xffcc6666)), 11 | 'name': TextStyle(color: Color(0xffcc6666)), 12 | 'selector-id': TextStyle(color: Color(0xffcc6666)), 13 | 'selector-class': TextStyle(color: Color(0xffcc6666)), 14 | 'regexp': TextStyle(color: Color(0xffcc6666)), 15 | 'deletion': TextStyle(color: Color(0xffcc6666)), 16 | 'number': TextStyle(color: Color(0xffde935f)), 17 | 'built_in': TextStyle(color: Color(0xffde935f)), 18 | 'builtin-name': TextStyle(color: Color(0xffde935f)), 19 | 'literal': TextStyle(color: Color(0xffde935f)), 20 | 'type': TextStyle(color: Color(0xffde935f)), 21 | 'params': TextStyle(color: Color(0xffde935f)), 22 | 'meta': TextStyle(color: Color(0xffde935f)), 23 | 'link': TextStyle(color: Color(0xffde935f)), 24 | 'attribute': TextStyle(color: Color(0xfff0c674)), 25 | 'string': TextStyle(color: Color(0xffb5bd68)), 26 | 'symbol': TextStyle(color: Color(0xffb5bd68)), 27 | 'bullet': TextStyle(color: Color(0xffb5bd68)), 28 | 'addition': TextStyle(color: Color(0xffb5bd68)), 29 | 'title': TextStyle(color: Color(0xff81a2be)), 30 | 'section': TextStyle(color: Color(0xff81a2be)), 31 | 'keyword': TextStyle(color: Color(0xffb294bb)), 32 | 'selector-tag': TextStyle(color: Color(0xffb294bb)), 33 | 'root': 34 | TextStyle(backgroundColor: Color(0xff1d1f21), color: Color(0xffc5c8c6)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.bold), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/tomorrow.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const tomorrowTheme = { 6 | 'comment': TextStyle(color: Color(0xff8e908c)), 7 | 'quote': TextStyle(color: Color(0xff8e908c)), 8 | 'variable': TextStyle(color: Color(0xffc82829)), 9 | 'template-variable': TextStyle(color: Color(0xffc82829)), 10 | 'tag': TextStyle(color: Color(0xffc82829)), 11 | 'name': TextStyle(color: Color(0xffc82829)), 12 | 'selector-id': TextStyle(color: Color(0xffc82829)), 13 | 'selector-class': TextStyle(color: Color(0xffc82829)), 14 | 'regexp': TextStyle(color: Color(0xffc82829)), 15 | 'deletion': TextStyle(color: Color(0xffc82829)), 16 | 'number': TextStyle(color: Color(0xfff5871f)), 17 | 'built_in': TextStyle(color: Color(0xfff5871f)), 18 | 'builtin-name': TextStyle(color: Color(0xfff5871f)), 19 | 'literal': TextStyle(color: Color(0xfff5871f)), 20 | 'type': TextStyle(color: Color(0xfff5871f)), 21 | 'params': TextStyle(color: Color(0xfff5871f)), 22 | 'meta': TextStyle(color: Color(0xfff5871f)), 23 | 'link': TextStyle(color: Color(0xfff5871f)), 24 | 'attribute': TextStyle(color: Color(0xffeab700)), 25 | 'string': TextStyle(color: Color(0xff718c00)), 26 | 'symbol': TextStyle(color: Color(0xff718c00)), 27 | 'bullet': TextStyle(color: Color(0xff718c00)), 28 | 'addition': TextStyle(color: Color(0xff718c00)), 29 | 'title': TextStyle(color: Color(0xff4271ae)), 30 | 'section': TextStyle(color: Color(0xff4271ae)), 31 | 'keyword': TextStyle(color: Color(0xff8959a8)), 32 | 'selector-tag': TextStyle(color: Color(0xff8959a8)), 33 | 'root': 34 | TextStyle(backgroundColor: Color(0xffffffff), color: Color(0xff4d4d4c)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.bold), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/vs.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const vsTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xffffffff), color: Color(0xff000000)), 8 | 'built_in': TextStyle(color: Color(0xff0000ff)), 9 | 'keyword': TextStyle(color: Color(0xff0000ff)), 10 | 'name': TextStyle(color: Color(0xff0000ff)), 11 | 'selector-tag': TextStyle(color: Color(0xff0000ff)), 12 | 'tag': TextStyle(color: Color(0xff0000ff)), 13 | 'addition': TextStyle(color: Color(0xffa31515)), 14 | 'attribute': TextStyle(color: Color(0xffa31515)), 15 | 'literal': TextStyle(color: Color(0xffa31515)), 16 | 'section': TextStyle(color: Color(0xffa31515)), 17 | 'string': TextStyle(color: Color(0xffa31515)), 18 | 'template-tag': TextStyle(color: Color(0xffa31515)), 19 | 'template-variable': TextStyle(color: Color(0xffa31515)), 20 | 'title': TextStyle(color: Color(0xffa31515)), 21 | 'type': TextStyle(color: Color(0xffa31515)), 22 | 'deletion': TextStyle(color: Color(0xff2b91af)), 23 | 'meta': TextStyle(color: Color(0xff2b91af)), 24 | 'selector-attr': TextStyle(color: Color(0xff2b91af)), 25 | 'selector-pseudo': TextStyle(color: Color(0xff2b91af)), 26 | 'bullet': TextStyle(color: Color(0xff00b0e8)), 27 | 'link': TextStyle(color: Color(0xff00b0e8)), 28 | 'symbol': TextStyle(color: Color(0xff00b0e8)), 29 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 30 | 'strong': TextStyle(fontWeight: FontWeight.w700), 31 | }; 32 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/xt256.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const xt256Theme = { 6 | 'root': 7 | TextStyle(color: Color(0xffeaeaea), backgroundColor: Color(0xff000000)), 8 | 'subst': TextStyle(color: Color(0xffeaeaea)), 9 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 10 | 'strong': TextStyle(fontWeight: FontWeight.w700), 11 | 'type': TextStyle(color: Color(0xffeaeaea)), 12 | 'params': TextStyle(color: Color(0xffda0000)), 13 | 'literal': TextStyle(fontWeight: FontWeight.bold), 14 | 'name': TextStyle(fontWeight: FontWeight.bold), 15 | 'number': TextStyle(fontWeight: FontWeight.bold), 16 | 'comment': TextStyle(color: Color(0xff969896)), 17 | 'quote': TextStyle(color: Color(0xff00ffff)), 18 | 'selector-id': TextStyle(color: Color(0xff00ffff)), 19 | 'template-variable': 20 | TextStyle(color: Color(0xff00ffff), fontWeight: FontWeight.w700), 21 | 'title': TextStyle(color: Color(0xff00ffff), fontWeight: FontWeight.w700), 22 | 'variable': TextStyle(color: Color(0xff00ffff), fontWeight: FontWeight.w700), 23 | 'keyword': TextStyle(color: Color(0xfffff000)), 24 | 'selector-class': TextStyle(color: Color(0xfffff000)), 25 | 'symbol': TextStyle(color: Color(0xfffff000)), 26 | 'bullet': TextStyle(color: Color(0xff00ff00)), 27 | 'string': TextStyle(color: Color(0xff00ff00)), 28 | 'section': TextStyle(color: Color(0xff000fff)), 29 | 'tag': TextStyle(color: Color(0xff000fff)), 30 | 'selector-tag': 31 | TextStyle(color: Color(0xff000fff), fontWeight: FontWeight.w700), 32 | 'attribute': TextStyle(color: Color(0xffff00ff)), 33 | 'built_in': TextStyle(color: Color(0xffff00ff)), 34 | 'link': TextStyle(color: Color(0xffff00ff)), 35 | 'regexp': TextStyle(color: Color(0xffff00ff)), 36 | 'meta': TextStyle(color: Color(0xffffffff), fontWeight: FontWeight.bold), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/lib/themes/zenburn.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | import 'package:flutter/painting.dart'; 4 | 5 | const zenburnTheme = { 6 | 'root': 7 | TextStyle(backgroundColor: Color(0xff3f3f3f), color: Color(0xffdcdcdc)), 8 | 'keyword': TextStyle(color: Color(0xffe3ceab)), 9 | 'selector-tag': TextStyle(color: Color(0xffe3ceab)), 10 | 'tag': TextStyle(color: Color(0xffe3ceab)), 11 | 'template-tag': TextStyle(color: Color(0xffdcdcdc)), 12 | 'number': TextStyle(color: Color(0xff8cd0d3)), 13 | 'variable': TextStyle(color: Color(0xffefdcbc)), 14 | 'template-variable': TextStyle(color: Color(0xffefdcbc)), 15 | 'attribute': TextStyle(color: Color(0xffefdcbc)), 16 | 'literal': TextStyle(color: Color(0xffefefaf)), 17 | 'subst': TextStyle(color: Color(0xff8f8f8f)), 18 | 'title': TextStyle(color: Color(0xffefef8f)), 19 | 'name': TextStyle(color: Color(0xffefef8f)), 20 | 'selector-id': TextStyle(color: Color(0xffefef8f)), 21 | 'selector-class': TextStyle(color: Color(0xffefef8f)), 22 | 'section': TextStyle(color: Color(0xffefef8f)), 23 | 'type': TextStyle(color: Color(0xffefef8f)), 24 | 'symbol': TextStyle(color: Color(0xffdca3a3)), 25 | 'bullet': TextStyle(color: Color(0xffdca3a3)), 26 | 'link': TextStyle(color: Color(0xffdca3a3)), 27 | 'deletion': TextStyle(color: Color(0xffcc9393)), 28 | 'string': TextStyle(color: Color(0xffcc9393)), 29 | 'built_in': TextStyle(color: Color(0xffcc9393)), 30 | 'builtin-name': TextStyle(color: Color(0xffcc9393)), 31 | 'addition': TextStyle(color: Color(0xff7f9f7f)), 32 | 'comment': TextStyle(color: Color(0xff7f9f7f)), 33 | 'quote': TextStyle(color: Color(0xff7f9f7f)), 34 | 'meta': TextStyle(color: Color(0xff7f9f7f)), 35 | 'emphasis': TextStyle(fontStyle: FontStyle.italic), 36 | 'strong': TextStyle(fontWeight: FontWeight.bold), 37 | }; 38 | -------------------------------------------------------------------------------- /flutter_highlighting/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_highlighting 2 | description: Syntax highlighting widget for Flutter with lots of languages and themes support. 3 | version: 0.9.1+11.8.0 4 | homepage: https://github.com/akvelon/dart-highlighting 5 | 6 | environment: 7 | sdk: ">=2.12.0 <3.0.0" 8 | flutter: ">=3.0.0" 9 | 10 | dependencies: 11 | flutter: { sdk: flutter } 12 | highlighting: ^0.9.0+11.8.0 13 | 14 | dev_dependencies: 15 | total_lints: ^2.19.0 16 | 17 | #dependency_overrides: 18 | # highlighting: 19 | # path: ../highlighting 20 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akvelon/dart-highlighting/25bc512c66d9eead9012dd129d0a12e77393b828/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /highlighting/.gitignore: -------------------------------------------------------------------------------- 1 | # Files and directories created by pub 2 | .dart_tool/ 3 | .packages 4 | # Remove the following pattern if you wish to check in your lock file 5 | pubspec.lock 6 | 7 | # Conventional directory for build outputs 8 | build/ 9 | 10 | # Directory created by dartdoc 11 | doc/api/ 12 | -------------------------------------------------------------------------------- /highlighting/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Akvelon Inc. 4 | Copyright (c) 2019 Rongjian Zhang 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /highlighting/README.md: -------------------------------------------------------------------------------- 1 | # highlighting 2 | 3 | Code syntax highlighting library for over 190 languages. 4 | 5 | If you are looking for the Flutter widget, see 6 | [flutter_highlighting](https://pub.dev/packages/flutter_highlighting). 7 | 8 | This package is a port of [HighlightJS](https://highlightjs.org) project into Dart. 9 | It is periodically updated from the original JavaScript version with an automated script. 10 | 11 | ## Usage 12 | 13 | ```dart 14 | import 'package:highlighting/highlighting.dart'; 15 | import 'package:highlighting/languages/dart.dart'; 16 | 17 | void main() { 18 | final source = '''main() { 19 | print('Highlighting by Akvelon.'); 20 | } 21 | '''; 22 | 23 | highlight.registerLanguage(dart); 24 | 25 | final highlighted = highlight.parse(source, languageId: dart.id); 26 | final html = highlighted.toHtml(); 27 | print(html); // HTML string 28 | } 29 | ``` 30 | 31 | ## Versions and Migration 32 | 33 | The package uses its own version numbering in addition to that of HighlightJS. 34 | For example, the version `0.9.0+11.8.0` means that it is: 35 | 36 | - Version `0.9.0` of the Dart package itself, and it contains breaking changes 37 | over the version `0.8.x`. 38 | - Ported from HighlightJS version `11.8.0`. 39 | 40 | This allows the `pub` tool to automatically guard you against breaking changes. 41 | 42 | Migration guides: 43 | 44 | - [Migrating from highlight to v0.9](https://github.com/akvelon/dart-highlighting/blob/main/doc/migrating.md). 45 | 46 | ## Maintainer's Guide 47 | 48 | - [Maintainer's Guide](https://github.com/akvelon/dart-highlighting/blob/main/doc/maintainers_guide.md) 49 | on how the automatic porting works. 50 | - [How we Ported HighlightJS to Dart](https://medium.com/akvelon/how-we-ported-highlightjs-to-dart-82b107415fbd) on Medium. 51 | 52 | ## References 53 | 54 | - [All available languages](https://github.com/akvelon/dart-highlighting/tree/main/highlighting/lib/languages). 55 | -------------------------------------------------------------------------------- /highlighting/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:total_lints/app.yaml 2 | -------------------------------------------------------------------------------- /highlighting/build.gradle.kts: -------------------------------------------------------------------------------- 1 | val clonePath = "test/highlight.js"; 2 | val tag = "11.7.0" 3 | 4 | tasks.register("clean") { 5 | doLast { 6 | exec { 7 | executable("rm") 8 | args( 9 | "-rf", 10 | clonePath, 11 | "test/errors", 12 | ) 13 | } 14 | } 15 | } 16 | 17 | tasks.register("precommit") { 18 | dependsOn("analyze") 19 | dependsOn("format") 20 | dependsOn("test") 21 | } 22 | 23 | tasks.register("analyze") { 24 | doLast { 25 | exec { 26 | executable("dart") 27 | args("analyze") 28 | } 29 | } 30 | } 31 | 32 | tasks.register("format") { 33 | doLast { 34 | exec { 35 | executable("dart") 36 | args("format", "-o", "none", "--set-exit-if-changed") 37 | } 38 | } 39 | } 40 | 41 | tasks.register("test") { 42 | dependsOn("cloneHighlightJs") 43 | 44 | doLast { 45 | exec { 46 | executable("dart") 47 | args("test") 48 | } 49 | } 50 | } 51 | 52 | tasks.register("cloneHighlightJs") { 53 | onlyIf { 54 | !file(clonePath).exists() 55 | } 56 | 57 | doLast { 58 | exec { 59 | executable("git") 60 | args( 61 | "clone", 62 | "https://github.com/highlightjs/highlight.js.git", 63 | clonePath, 64 | "-b", tag, 65 | ) 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /highlighting/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:highlighting/highlighting.dart'; 2 | import 'package:highlighting/languages/dart.dart'; 3 | 4 | void main() { 5 | final source = '''main() { 6 | print('Highlighting by Akvelon.'); 7 | } 8 | '''; 9 | 10 | highlight.registerLanguage(dart); 11 | 12 | final highlighted = highlight.parse(source, languageId: dart.id); 13 | final html = highlighted.toHtml(); 14 | print(html); // HTML string 15 | } 16 | -------------------------------------------------------------------------------- /highlighting/lib/highlighting.dart: -------------------------------------------------------------------------------- 1 | import 'src/highlight.dart'; 2 | 3 | export 'package:highlighting/src/highlight.dart'; 4 | export 'package:highlighting/src/mode.dart'; 5 | export 'package:highlighting/src/node.dart'; 6 | export 'package:highlighting/src/result.dart'; 7 | 8 | final highlight = Highlight(); 9 | -------------------------------------------------------------------------------- /highlighting/lib/languages/awk.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final awk = Language( 11 | id: "awk", 12 | refs: {}, 13 | name: "Awk", 14 | keywords: { 15 | "keyword": 16 | "BEGIN END if else while do for in break continue delete next nextfile function func exit|10" 17 | }, 18 | contains: [ 19 | Mode( 20 | className: "variable", 21 | variants: [ 22 | Mode( 23 | begin: "\\\$[\\w\\d#@][\\w\\d_]*", 24 | ), 25 | Mode( 26 | begin: "\\\$\\{(.*?)\\}", 27 | ), 28 | ], 29 | ), 30 | Mode( 31 | className: "string", 32 | contains: [ 33 | BACKSLASH_ESCAPE, 34 | ], 35 | variants: [ 36 | Mode( 37 | begin: "(u|b)?r?'''", 38 | end: "'''", 39 | relevance: 10, 40 | ), 41 | Mode( 42 | begin: "(u|b)?r?\"\"\"", 43 | end: "\"\"\"", 44 | relevance: 10, 45 | ), 46 | Mode( 47 | begin: "(u|r|ur)'", 48 | end: "'", 49 | relevance: 10, 50 | ), 51 | Mode( 52 | begin: "(u|r|ur)\"", 53 | end: "\"", 54 | relevance: 10, 55 | ), 56 | Mode( 57 | begin: "(b|br)'", 58 | end: "'", 59 | ), 60 | Mode( 61 | begin: "(b|br)\"", 62 | end: "\"", 63 | ), 64 | APOS_STRING_MODE, 65 | QUOTE_STRING_MODE, 66 | ], 67 | ), 68 | REGEXP_MODE, 69 | HASH_COMMENT_MODE, 70 | NUMBER_MODE, 71 | ], 72 | ); 73 | -------------------------------------------------------------------------------- /highlighting/lib/languages/bnf.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final bnf = Language( 11 | id: "bnf", 12 | refs: {}, 13 | name: "Backus–Naur Form", 14 | contains: [ 15 | Mode( 16 | className: "attribute", 17 | begin: "<", 18 | end: ">", 19 | ), 20 | Mode( 21 | begin: "::=", 22 | end: "\$", 23 | contains: [ 24 | Mode( 25 | begin: "<", 26 | end: ">", 27 | ), 28 | C_LINE_COMMENT_MODE, 29 | C_BLOCK_COMMENT_MODE, 30 | APOS_STRING_MODE, 31 | QUOTE_STRING_MODE, 32 | ], 33 | ), 34 | ], 35 | ); 36 | -------------------------------------------------------------------------------- /highlighting/lib/languages/brainfuck.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final brainfuck = Language( 11 | id: "brainfuck", 12 | refs: { 13 | '~contains~3~contains~0': Mode( 14 | className: "literal", 15 | begin: "[+-]+", 16 | relevance: 0, 17 | ), 18 | }, 19 | name: "Brainfuck", 20 | aliases: ["bf"], 21 | contains: [ 22 | Mode( 23 | scope: "comment", 24 | begin: "[^\\[\\]\\.,\\+\\-<> \\r\\n]", 25 | end: "[\\[\\]\\.,\\+\\-<> \\r\\n]", 26 | contains: [ 27 | Mode( 28 | match: "[ ]+[^\\[\\]\\.,\\+\\-<> \\r\\n]", 29 | relevance: 0, 30 | ), 31 | Mode( 32 | scope: "doctag", 33 | begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", 34 | end: "(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):", 35 | excludeBegin: true, 36 | relevance: 0, 37 | ), 38 | Mode( 39 | begin: 40 | "[ ]+((?:I|a|is|so|us|to|at|if|in|it|on|[A-Za-z]+['](d|ve|re|ll|t|s|n)|[A-Za-z]+[-][a-z]+|[A-Za-z][a-z]{2,})[.]?[:]?([.][ ]|[ ])){3}", 41 | ), 42 | ], 43 | returnEnd: true, 44 | relevance: 0, 45 | ), 46 | Mode( 47 | className: "title", 48 | begin: "[\\[\\]]", 49 | relevance: 0, 50 | ), 51 | Mode( 52 | className: "string", 53 | begin: "[\\.,]", 54 | relevance: 0, 55 | ), 56 | Mode( 57 | begin: "(?=\\+\\+|--)", 58 | contains: [ 59 | ModeReference('~contains~3~contains~0'), 60 | ], 61 | ), 62 | ModeReference('~contains~3~contains~0'), 63 | ], 64 | ); 65 | -------------------------------------------------------------------------------- /highlighting/lib/languages/capnproto.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final capnproto = Language( 11 | id: "capnproto", 12 | refs: {}, 13 | name: "Cap’n Proto", 14 | aliases: ["capnp"], 15 | keywords: { 16 | "keyword": [ 17 | "struct", 18 | "enum", 19 | "interface", 20 | "union", 21 | "group", 22 | "import", 23 | "using", 24 | "const", 25 | "annotation", 26 | "extends", 27 | "in", 28 | "of", 29 | "on", 30 | "as", 31 | "with", 32 | "from", 33 | "fixed" 34 | ], 35 | "type": [ 36 | "Void", 37 | "Bool", 38 | "Int8", 39 | "Int16", 40 | "Int32", 41 | "Int64", 42 | "UInt8", 43 | "UInt16", 44 | "UInt32", 45 | "UInt64", 46 | "Float32", 47 | "Float64", 48 | "Text", 49 | "Data", 50 | "AnyPointer", 51 | "AnyStruct", 52 | "Capability", 53 | "List" 54 | ], 55 | "literal": ["true", "false"] 56 | }, 57 | contains: [ 58 | QUOTE_STRING_MODE, 59 | NUMBER_MODE, 60 | HASH_COMMENT_MODE, 61 | Mode( 62 | className: "meta", 63 | begin: "@0x[\\w\\d]{16};", 64 | illegal: "\\n", 65 | ), 66 | Mode( 67 | className: "symbol", 68 | begin: "@\\d+\\b", 69 | ), 70 | Mode( 71 | variants: [ 72 | Mode( 73 | match: ["(struct|enum|interface)", "\\s+", "[a-zA-Z]\\w*"], 74 | ), 75 | Mode( 76 | match: ["extends", "\\s*\\(", "[a-zA-Z]\\w*", "\\s*\\)"], 77 | ), 78 | ], 79 | scope: {"1": "keyword", "3": "title.class"}, 80 | ), 81 | ], 82 | ); 83 | -------------------------------------------------------------------------------- /highlighting/lib/languages/clean.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final clean = Language( 11 | id: "clean", 12 | refs: {}, 13 | name: "Clean", 14 | aliases: ["icl", "dcl"], 15 | keywords: { 16 | "keyword": [ 17 | "if", 18 | "let", 19 | "in", 20 | "with", 21 | "where", 22 | "case", 23 | "of", 24 | "class", 25 | "instance", 26 | "otherwise", 27 | "implementation", 28 | "definition", 29 | "system", 30 | "module", 31 | "from", 32 | "import", 33 | "qualified", 34 | "as", 35 | "special", 36 | "code", 37 | "inline", 38 | "foreign", 39 | "export", 40 | "ccall", 41 | "stdcall", 42 | "generic", 43 | "derive", 44 | "infix", 45 | "infixl", 46 | "infixr" 47 | ], 48 | "built_in": "Int Real Char Bool", 49 | "literal": "True False" 50 | }, 51 | contains: [ 52 | C_LINE_COMMENT_MODE, 53 | C_BLOCK_COMMENT_MODE, 54 | APOS_STRING_MODE, 55 | QUOTE_STRING_MODE, 56 | C_NUMBER_MODE, 57 | Mode( 58 | begin: "->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>", 59 | ), 60 | ], 61 | ); 62 | -------------------------------------------------------------------------------- /highlighting/lib/languages/clojure-repl.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final clojureRepl = Language( 11 | id: "clojure-repl", 12 | refs: {}, 13 | name: "Clojure REPL", 14 | contains: [ 15 | Mode( 16 | className: "meta.prompt", 17 | begin: "^([\\w.-]+|\\s*#_)?=>", 18 | starts: Mode( 19 | end: "\$", 20 | subLanguage: ["clojure"], 21 | ), 22 | ), 23 | ], 24 | ); 25 | -------------------------------------------------------------------------------- /highlighting/lib/languages/csp.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final csp = Language( 11 | id: "csp", 12 | refs: {}, 13 | name: "CSP", 14 | case_insensitive: false, 15 | keywords: { 16 | "\$pattern": "[a-zA-Z][a-zA-Z0-9_-]*", 17 | "keyword": [ 18 | "base-uri", 19 | "child-src", 20 | "connect-src", 21 | "default-src", 22 | "font-src", 23 | "form-action", 24 | "frame-ancestors", 25 | "frame-src", 26 | "img-src", 27 | "manifest-src", 28 | "media-src", 29 | "object-src", 30 | "plugin-types", 31 | "report-uri", 32 | "sandbox", 33 | "script-src", 34 | "style-src", 35 | "trusted-types", 36 | "unsafe-hashes", 37 | "worker-src" 38 | ] 39 | }, 40 | contains: [ 41 | Mode( 42 | className: "string", 43 | begin: "'", 44 | end: "'", 45 | ), 46 | Mode( 47 | className: "attribute", 48 | begin: "^Content", 49 | end: ":", 50 | excludeEnd: true, 51 | ), 52 | ], 53 | ); 54 | -------------------------------------------------------------------------------- /highlighting/lib/languages/diff.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final diff = Language( 11 | id: "diff", 12 | refs: {}, 13 | name: "Diff", 14 | aliases: ["patch"], 15 | contains: [ 16 | Mode( 17 | className: "meta", 18 | relevance: 10, 19 | match: 20 | "(?:^@@ +-\\d+,\\d+ +\\+\\d+,\\d+ +@@|^\\*\\*\\* +\\d+,\\d+ +\\*\\*\\*\\*\$|^--- +\\d+,\\d+ +----\$)", 21 | ), 22 | Mode( 23 | className: "comment", 24 | variants: [ 25 | Mode( 26 | begin: "(?:Index: |^index|={3,}|^-{3}|^\\*{3} |^\\+{3}|^diff --git)", 27 | end: "\$", 28 | ), 29 | Mode( 30 | match: "^\\*{15}\$", 31 | ), 32 | ], 33 | ), 34 | Mode( 35 | className: "addition", 36 | begin: "^\\+", 37 | end: "\$", 38 | ), 39 | Mode( 40 | className: "deletion", 41 | begin: "^-", 42 | end: "\$", 43 | ), 44 | Mode( 45 | className: "addition", 46 | begin: "^!", 47 | end: "\$", 48 | ), 49 | ], 50 | ); 51 | -------------------------------------------------------------------------------- /highlighting/lib/languages/dockerfile.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final dockerfile = Language( 11 | id: "dockerfile", 12 | refs: {}, 13 | name: "Dockerfile", 14 | aliases: ["docker"], 15 | case_insensitive: true, 16 | keywords: [ 17 | "from", 18 | "maintainer", 19 | "expose", 20 | "env", 21 | "arg", 22 | "user", 23 | "onbuild", 24 | "stopsignal" 25 | ], 26 | contains: [ 27 | HASH_COMMENT_MODE, 28 | APOS_STRING_MODE, 29 | QUOTE_STRING_MODE, 30 | NUMBER_MODE, 31 | Mode( 32 | beginKeywords: 33 | "run cmd entrypoint volume add copy workdir label healthcheck shell", 34 | starts: Mode( 35 | end: "[^\\\\]\$", 36 | subLanguage: ["bash"], 37 | ), 38 | ), 39 | ], 40 | illegal: "", 20 | contains: [ 21 | Mode( 22 | scope: "doctag", 23 | begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", 24 | end: "(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):", 25 | excludeBegin: true, 26 | relevance: 0, 27 | ), 28 | Mode( 29 | begin: 30 | "[ ]+((?:I|a|is|so|us|to|at|if|in|it|on|[A-Za-z]+['](d|ve|re|ll|t|s|n)|[A-Za-z]+[-][a-z]+|[A-Za-z][a-z]{2,})[.]?[:]?([.][ ]|[ ])){3}", 31 | ), 32 | ], 33 | ), 34 | Mode( 35 | begin: "<%[%=-]?", 36 | end: "[%-]?%>", 37 | subLanguage: ["ruby"], 38 | excludeBegin: true, 39 | excludeEnd: true, 40 | ), 41 | ], 42 | ); 43 | -------------------------------------------------------------------------------- /highlighting/lib/languages/fix.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final fix = Language( 11 | id: "fix", 12 | refs: {}, 13 | name: "FIX", 14 | contains: [ 15 | Mode( 16 | begin: "[^\\u2401\\u0001]+", 17 | end: "[\\u2401\\u0001]", 18 | excludeEnd: true, 19 | returnBegin: true, 20 | returnEnd: false, 21 | contains: [ 22 | Mode( 23 | begin: "([^\\u2401\\u0001=]+)", 24 | end: "=([^\\u2401\\u0001=]+)", 25 | returnEnd: true, 26 | returnBegin: false, 27 | className: "attr", 28 | ), 29 | Mode( 30 | begin: "=", 31 | end: "([\\u2401\\u0001])", 32 | excludeEnd: true, 33 | excludeBegin: true, 34 | className: "string", 35 | ), 36 | ], 37 | ), 38 | ], 39 | case_insensitive: true, 40 | ); 41 | -------------------------------------------------------------------------------- /highlighting/lib/languages/flix.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final flix = Language( 11 | id: "flix", 12 | refs: {}, 13 | name: "Flix", 14 | keywords: { 15 | "keyword": [ 16 | "case", 17 | "class", 18 | "def", 19 | "else", 20 | "enum", 21 | "if", 22 | "impl", 23 | "import", 24 | "in", 25 | "lat", 26 | "rel", 27 | "index", 28 | "let", 29 | "match", 30 | "namespace", 31 | "switch", 32 | "type", 33 | "yield", 34 | "with" 35 | ], 36 | "literal": ["true", "false"] 37 | }, 38 | contains: [ 39 | C_LINE_COMMENT_MODE, 40 | C_BLOCK_COMMENT_MODE, 41 | Mode( 42 | className: "string", 43 | begin: "'(.|\\\\[xXuU][a-zA-Z0-9]+)'", 44 | ), 45 | Mode( 46 | className: "string", 47 | variants: [ 48 | Mode( 49 | begin: "\"", 50 | end: "\"", 51 | ), 52 | ], 53 | ), 54 | Mode( 55 | className: "function", 56 | beginKeywords: "def", 57 | end: "[:={\\[(\\n;]", 58 | excludeEnd: true, 59 | contains: [ 60 | Mode( 61 | className: "title", 62 | relevance: 0, 63 | begin: 64 | "[^0-9\\n\\t \"'(),.`{}\\[\\]:;][^\\n\\t \"'(),.`{}\\[\\]:;]+|[^0-9\\n\\t \"'(),.`{}\\[\\]:;=]", 65 | ), 66 | ], 67 | ), 68 | C_NUMBER_MODE, 69 | ], 70 | ); 71 | -------------------------------------------------------------------------------- /highlighting/lib/languages/gherkin.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final gherkin = Language( 11 | id: "gherkin", 12 | refs: {}, 13 | name: "Gherkin", 14 | aliases: ["feature"], 15 | keywords: 16 | "Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When", 17 | contains: [ 18 | Mode( 19 | className: "symbol", 20 | begin: "\\*", 21 | relevance: 0, 22 | ), 23 | Mode( 24 | className: "meta", 25 | begin: "@[^@\\s]+", 26 | ), 27 | Mode( 28 | begin: "\\|", 29 | end: "\\|\\w*\$", 30 | contains: [ 31 | Mode( 32 | className: "string", 33 | begin: "[^|]+", 34 | ), 35 | ], 36 | ), 37 | Mode( 38 | className: "variable", 39 | begin: "<", 40 | end: ">", 41 | ), 42 | HASH_COMMENT_MODE, 43 | Mode( 44 | className: "string", 45 | begin: "\"\"\"", 46 | end: "\"\"\"", 47 | ), 48 | QUOTE_STRING_MODE, 49 | ], 50 | ); 51 | -------------------------------------------------------------------------------- /highlighting/lib/languages/golo.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final golo = Language( 11 | id: "golo", 12 | refs: {}, 13 | name: "Golo", 14 | keywords: { 15 | "keyword": [ 16 | "println", 17 | "readln", 18 | "print", 19 | "import", 20 | "module", 21 | "function", 22 | "local", 23 | "return", 24 | "let", 25 | "var", 26 | "while", 27 | "for", 28 | "foreach", 29 | "times", 30 | "in", 31 | "case", 32 | "when", 33 | "match", 34 | "with", 35 | "break", 36 | "continue", 37 | "augment", 38 | "augmentation", 39 | "each", 40 | "find", 41 | "filter", 42 | "reduce", 43 | "if", 44 | "then", 45 | "else", 46 | "otherwise", 47 | "try", 48 | "catch", 49 | "finally", 50 | "raise", 51 | "throw", 52 | "orIfNull", 53 | "DynamicObject|10", 54 | "DynamicVariable", 55 | "struct", 56 | "Observable", 57 | "map", 58 | "set", 59 | "vector", 60 | "list", 61 | "array" 62 | ], 63 | "literal": ["true", "false", "null"] 64 | }, 65 | contains: [ 66 | HASH_COMMENT_MODE, 67 | QUOTE_STRING_MODE, 68 | C_NUMBER_MODE, 69 | Mode( 70 | className: "meta", 71 | begin: "@[A-Za-z]+", 72 | ), 73 | ], 74 | ); 75 | -------------------------------------------------------------------------------- /highlighting/lib/languages/graphql.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final graphql = Language( 11 | id: "graphql", 12 | refs: {}, 13 | name: "GraphQL", 14 | aliases: ["gql"], 15 | case_insensitive: true, 16 | disableAutodetect: false, 17 | keywords: { 18 | "keyword": [ 19 | "query", 20 | "mutation", 21 | "subscription", 22 | "type", 23 | "input", 24 | "schema", 25 | "directive", 26 | "interface", 27 | "union", 28 | "scalar", 29 | "fragment", 30 | "enum", 31 | "on" 32 | ], 33 | "literal": ["true", "false", "null"] 34 | }, 35 | contains: [ 36 | HASH_COMMENT_MODE, 37 | QUOTE_STRING_MODE, 38 | NUMBER_MODE, 39 | Mode( 40 | scope: "punctuation", 41 | match: "[.]{3}", 42 | relevance: 0, 43 | ), 44 | Mode( 45 | scope: "punctuation", 46 | begin: "[\\!\\(\\)\\:\\=\\[\\]\\{\\|\\}]{1}", 47 | relevance: 0, 48 | ), 49 | Mode( 50 | scope: "variable", 51 | begin: "\\\$", 52 | end: "\\W", 53 | excludeEnd: true, 54 | relevance: 0, 55 | ), 56 | Mode( 57 | scope: "meta", 58 | match: "@\\w+", 59 | excludeEnd: true, 60 | ), 61 | Mode( 62 | scope: "symbol", 63 | begin: "[_A-Za-z][_0-9A-Za-z]*(?=\\s*:)", 64 | relevance: 0, 65 | ), 66 | ], 67 | illegal: ["[;<']", "BEGIN"], 68 | ); 69 | -------------------------------------------------------------------------------- /highlighting/lib/languages/inform7.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final inform7 = Language( 11 | id: "inform7", 12 | refs: {}, 13 | name: "Inform 7", 14 | aliases: ["i7"], 15 | case_insensitive: true, 16 | keywords: { 17 | "keyword": 18 | "thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule" 19 | }, 20 | contains: [ 21 | Mode( 22 | className: "string", 23 | begin: "\"", 24 | end: "\"", 25 | relevance: 0, 26 | contains: [ 27 | Mode( 28 | className: "subst", 29 | begin: "\\[", 30 | end: "\\]", 31 | ), 32 | ], 33 | ), 34 | Mode( 35 | className: "section", 36 | begin: "^(Volume|Book|Part|Chapter|Section|Table)\\b", 37 | end: "\$", 38 | ), 39 | Mode( 40 | begin: 41 | "^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\\b", 42 | end: ":", 43 | contains: [ 44 | Mode( 45 | begin: "\\(This", 46 | end: "\\)", 47 | ), 48 | ], 49 | ), 50 | Mode( 51 | className: "comment", 52 | begin: "\\[", 53 | end: "\\]", 54 | contains: [ 55 | ModeSelfReference(), 56 | ], 57 | ), 58 | ], 59 | ); 60 | -------------------------------------------------------------------------------- /highlighting/lib/languages/jboss-cli.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final jbossCli = Language( 11 | id: "jboss-cli", 12 | refs: {}, 13 | name: "JBoss CLI", 14 | aliases: ["wildfly-cli"], 15 | keywords: { 16 | "\$pattern": "[a-z-]+", 17 | "keyword": 18 | "alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source", 19 | "literal": "true false" 20 | }, 21 | contains: [ 22 | HASH_COMMENT_MODE, 23 | QUOTE_STRING_MODE, 24 | Mode( 25 | className: "params", 26 | begin: "--[\\w\\-=\\/]+", 27 | ), 28 | Mode( 29 | className: "function", 30 | begin: ":[\\w\\-.]+", 31 | relevance: 0, 32 | ), 33 | Mode( 34 | className: "string", 35 | begin: "\\B([\\/.])[\\w\\-.\\/=]+", 36 | ), 37 | Mode( 38 | className: "params", 39 | begin: "\\(", 40 | end: "\\)", 41 | contains: [ 42 | Mode( 43 | begin: "[\\w-]+ *=", 44 | returnBegin: true, 45 | relevance: 0, 46 | contains: [ 47 | Mode( 48 | className: "attr", 49 | begin: "[\\w-]+", 50 | ), 51 | ], 52 | ), 53 | ], 54 | relevance: 0, 55 | ), 56 | ], 57 | ); 58 | -------------------------------------------------------------------------------- /highlighting/lib/languages/json.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final json = Language( 11 | id: "json", 12 | refs: {}, 13 | name: "JSON", 14 | keywords: { 15 | "literal": ["true", "false", "null"] 16 | }, 17 | contains: [ 18 | Mode( 19 | className: "attr", 20 | begin: "\"(\\\\.|[^\\\\\"\\r\\n])*\"(?=\\s*:)", 21 | relevance: 1.01, 22 | ), 23 | Mode( 24 | match: "[{}[\\],:]", 25 | className: "punctuation", 26 | relevance: 0, 27 | ), 28 | QUOTE_STRING_MODE, 29 | Mode( 30 | scope: "literal", 31 | beginKeywords: "true false null", 32 | ), 33 | C_NUMBER_MODE, 34 | C_LINE_COMMENT_MODE, 35 | C_BLOCK_COMMENT_MODE, 36 | ], 37 | illegal: "\\S", 38 | ); 39 | -------------------------------------------------------------------------------- /highlighting/lib/languages/julia-repl.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final juliaRepl = Language( 11 | id: "julia-repl", 12 | refs: {}, 13 | name: "Julia REPL", 14 | contains: [ 15 | Mode( 16 | className: "meta.prompt", 17 | begin: "^julia>", 18 | relevance: 10, 19 | starts: Mode( 20 | end: "^(?![ ]{6})", 21 | subLanguage: ["julia"], 22 | ), 23 | ), 24 | ], 25 | aliases: ["jldoctest"], 26 | ); 27 | -------------------------------------------------------------------------------- /highlighting/lib/languages/ldif.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final ldif = Language( 11 | id: "ldif", 12 | refs: {}, 13 | name: "LDIF", 14 | contains: [ 15 | Mode( 16 | className: "attribute", 17 | match: "^dn(?=:)", 18 | relevance: 10, 19 | ), 20 | Mode( 21 | className: "attribute", 22 | match: "^\\w+(?=:)", 23 | ), 24 | Mode( 25 | className: "literal", 26 | match: "^-", 27 | ), 28 | HASH_COMMENT_MODE, 29 | ], 30 | ); 31 | -------------------------------------------------------------------------------- /highlighting/lib/languages/leaf.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final leaf = Language( 11 | id: "leaf", 12 | refs: {}, 13 | name: "Leaf", 14 | contains: [ 15 | Mode( 16 | className: "function", 17 | begin: "#+[A-Za-z_0-9]*\\(", 18 | end: " \\{", 19 | returnBegin: true, 20 | excludeEnd: true, 21 | contains: [ 22 | Mode( 23 | className: "keyword", 24 | begin: "#+", 25 | ), 26 | Mode( 27 | className: "title", 28 | begin: "[A-Za-z_][A-Za-z_0-9]*", 29 | ), 30 | Mode( 31 | className: "params", 32 | begin: "\\(", 33 | end: "\\)", 34 | endsParent: true, 35 | contains: [ 36 | Mode( 37 | className: "string", 38 | begin: "\"", 39 | end: "\"", 40 | ), 41 | Mode( 42 | className: "variable", 43 | begin: "[A-Za-z_][A-Za-z_0-9]*", 44 | ), 45 | ], 46 | ), 47 | ], 48 | ), 49 | ], 50 | ); 51 | -------------------------------------------------------------------------------- /highlighting/lib/languages/mizar.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final mizar = Language( 11 | id: "mizar", 12 | refs: {}, 13 | name: "Mizar", 14 | keywords: 15 | "environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity", 16 | contains: [ 17 | Mode( 18 | scope: "comment", 19 | begin: "::", 20 | end: "\$", 21 | contains: [ 22 | Mode( 23 | scope: "doctag", 24 | begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", 25 | end: "(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):", 26 | excludeBegin: true, 27 | relevance: 0, 28 | ), 29 | Mode( 30 | begin: 31 | "[ ]+((?:I|a|is|so|us|to|at|if|in|it|on|[A-Za-z]+['](d|ve|re|ll|t|s|n)|[A-Za-z]+[-][a-z]+|[A-Za-z][a-z]{2,})[.]?[:]?([.][ ]|[ ])){3}", 32 | ), 33 | ], 34 | ), 35 | ], 36 | ); 37 | -------------------------------------------------------------------------------- /highlighting/lib/languages/mojolicious.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final mojolicious = Language( 11 | id: "mojolicious", 12 | refs: {}, 13 | name: "Mojolicious", 14 | subLanguage: ["xml"], 15 | contains: [ 16 | Mode( 17 | className: "meta", 18 | begin: "^__(END|DATA)__\$", 19 | ), 20 | Mode( 21 | begin: "^\\s*%{1,2}={0,2}", 22 | end: "\$", 23 | subLanguage: ["perl"], 24 | ), 25 | Mode( 26 | begin: "<%{1,2}={0,2}", 27 | end: "={0,1}%>", 28 | subLanguage: ["perl"], 29 | excludeBegin: true, 30 | excludeEnd: true, 31 | ), 32 | ], 33 | ); 34 | -------------------------------------------------------------------------------- /highlighting/lib/languages/nestedtext.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final nestedtext = Language( 11 | id: "nestedtext", 12 | refs: {}, 13 | name: "Nested Text", 14 | aliases: ["nt"], 15 | contains: [ 16 | Mode( 17 | scope: "comment", 18 | begin: "^\\s*(?=#)", 19 | end: "\$", 20 | contains: [ 21 | Mode( 22 | scope: "doctag", 23 | begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", 24 | end: "(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):", 25 | excludeBegin: true, 26 | relevance: 0, 27 | ), 28 | Mode( 29 | begin: 30 | "[ ]+((?:I|a|is|so|us|to|at|if|in|it|on|[A-Za-z]+['](d|ve|re|ll|t|s|n)|[A-Za-z]+[-][a-z]+|[A-Za-z][a-z]{2,})[.]?[:]?([.][ ]|[ ])){3}", 31 | ), 32 | ], 33 | excludeBegin: true, 34 | ), 35 | Mode( 36 | variants: [ 37 | Mode( 38 | match: ["^\\s*", "-", "[ ]", ".*\$"], 39 | ), 40 | Mode( 41 | match: ["^\\s*", "-\$"], 42 | ), 43 | ], 44 | className: {"2": "bullet", "4": "string"}, 45 | ), 46 | Mode( 47 | match: ["^\\s*", ">", "[ ]", ".*\$"], 48 | className: {"2": "punctuation", "4": "string"}, 49 | ), 50 | Mode( 51 | match: ["^\\s*(?=\\S)", "[^:]+", ":\\s*", "\$"], 52 | className: {"2": "attribute", "3": "punctuation"}, 53 | ), 54 | Mode( 55 | match: ["^\\s*(?=\\S)", "[^:]*[^: ]", "[ ]*:", "[ ]", ".*\$"], 56 | className: {"2": "attribute", "3": "punctuation", "5": "string"}, 57 | ), 58 | ], 59 | ); 60 | -------------------------------------------------------------------------------- /highlighting/lib/languages/node-repl.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final nodeRepl = Language( 11 | id: "node-repl", 12 | refs: {}, 13 | name: "Node REPL", 14 | contains: [ 15 | Mode( 16 | className: "meta.prompt", 17 | starts: Mode( 18 | end: " |\$", 19 | starts: Mode( 20 | end: "\$", 21 | subLanguage: ["javascript"], 22 | ), 23 | ), 24 | variants: [ 25 | Mode( 26 | begin: "^>(?=[ ]|\$)", 27 | ), 28 | Mode( 29 | begin: "^\\.\\.\\.(?=[ ]|\$)", 30 | ), 31 | ], 32 | ), 33 | ], 34 | ); 35 | -------------------------------------------------------------------------------- /highlighting/lib/languages/pf.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final pf = Language( 11 | id: "pf", 12 | refs: {}, 13 | name: "Packet Filter config", 14 | aliases: ["pf.conf"], 15 | keywords: { 16 | "\$pattern": "[a-z0-9_<>-]+", 17 | "built_in": "block match pass load anchor|5 antispoof|10 set table", 18 | "keyword": 19 | "in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id", 20 | "literal": "all any no-route self urpf-failed egress|5 unknown" 21 | }, 22 | contains: [ 23 | HASH_COMMENT_MODE, 24 | NUMBER_MODE, 25 | QUOTE_STRING_MODE, 26 | Mode( 27 | className: "variable", 28 | begin: "\\\$[\\w\\d#@][\\w\\d_]*", 29 | relevance: 0, 30 | ), 31 | Mode( 32 | className: "variable", 33 | begin: "<(?!\\/)", 34 | end: ">", 35 | ), 36 | ], 37 | ); 38 | -------------------------------------------------------------------------------- /highlighting/lib/languages/php-template.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final phpTemplate = Language( 11 | id: "php-template", 12 | refs: {}, 13 | name: "PHP template", 14 | subLanguage: ["xml"], 15 | contains: [ 16 | Mode( 17 | begin: "<\\?(php|=)?", 18 | end: "\\?>", 19 | subLanguage: ["php"], 20 | contains: [ 21 | Mode( 22 | begin: "/\\*", 23 | end: "\\*/", 24 | skip: true, 25 | ), 26 | Mode( 27 | begin: "b\"", 28 | end: "\"", 29 | skip: true, 30 | ), 31 | Mode( 32 | begin: "b'", 33 | end: "'", 34 | skip: true, 35 | ), 36 | Mode( 37 | scope: "string", 38 | begin: "'", 39 | end: "'", 40 | illegal: null, 41 | contains: null, 42 | className: overwritingNullString, 43 | skip: true, 44 | ), 45 | Mode( 46 | scope: "string", 47 | begin: "\"", 48 | end: "\"", 49 | illegal: null, 50 | contains: null, 51 | className: overwritingNullString, 52 | skip: true, 53 | ), 54 | ], 55 | ), 56 | ], 57 | ); 58 | -------------------------------------------------------------------------------- /highlighting/lib/languages/plaintext.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final plaintext = Language( 11 | id: "plaintext", 12 | refs: {}, 13 | name: "Plain text", 14 | aliases: ["text", "txt"], 15 | disableAutodetect: true, 16 | ); 17 | -------------------------------------------------------------------------------- /highlighting/lib/languages/pony.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final pony = Language( 11 | id: "pony", 12 | refs: {}, 13 | name: "Pony", 14 | keywords: { 15 | "keyword": 16 | "actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor", 17 | "meta": "iso val tag trn box ref", 18 | "literal": "this false true" 19 | }, 20 | contains: [ 21 | Mode( 22 | className: "type", 23 | begin: "\\b_?[A-Z][\\w]*", 24 | relevance: 0, 25 | ), 26 | Mode( 27 | className: "string", 28 | begin: "\"\"\"", 29 | end: "\"\"\"", 30 | relevance: 10, 31 | ), 32 | Mode( 33 | className: "string", 34 | begin: "\"", 35 | end: "\"", 36 | contains: [ 37 | BACKSLASH_ESCAPE, 38 | ], 39 | ), 40 | Mode( 41 | className: "string", 42 | begin: "'", 43 | end: "'", 44 | contains: [ 45 | BACKSLASH_ESCAPE, 46 | ], 47 | relevance: 0, 48 | ), 49 | Mode( 50 | begin: "[a-zA-Z]\\w*'", 51 | relevance: 0, 52 | ), 53 | Mode( 54 | className: "number", 55 | begin: 56 | "(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", 57 | relevance: 0, 58 | ), 59 | C_LINE_COMMENT_MODE, 60 | C_BLOCK_COMMENT_MODE, 61 | ], 62 | ); 63 | -------------------------------------------------------------------------------- /highlighting/lib/languages/profile.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final profile = Language( 11 | id: "profile", 12 | refs: {}, 13 | name: "Python profiler", 14 | contains: [ 15 | C_NUMBER_MODE, 16 | Mode( 17 | begin: "[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}", 18 | end: ":", 19 | excludeEnd: true, 20 | ), 21 | Mode( 22 | begin: "(ncalls|tottime|cumtime)", 23 | end: "\$", 24 | keywords: "ncalls tottime|10 cumtime|10 filename", 25 | relevance: 10, 26 | ), 27 | Mode( 28 | begin: "function calls", 29 | end: "\$", 30 | contains: [ 31 | C_NUMBER_MODE, 32 | ], 33 | relevance: 10, 34 | ), 35 | APOS_STRING_MODE, 36 | QUOTE_STRING_MODE, 37 | Mode( 38 | className: "string", 39 | begin: "\\(", 40 | end: "\\)\$", 41 | excludeBegin: true, 42 | excludeEnd: true, 43 | relevance: 0, 44 | ), 45 | ], 46 | ); 47 | -------------------------------------------------------------------------------- /highlighting/lib/languages/protobuf.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final protobuf = Language( 11 | id: "protobuf", 12 | refs: {}, 13 | name: "Protocol Buffers", 14 | aliases: ["proto"], 15 | keywords: { 16 | "keyword": [ 17 | "package", 18 | "import", 19 | "option", 20 | "optional", 21 | "required", 22 | "repeated", 23 | "group", 24 | "oneof" 25 | ], 26 | "type": [ 27 | "double", 28 | "float", 29 | "int32", 30 | "int64", 31 | "uint32", 32 | "uint64", 33 | "sint32", 34 | "sint64", 35 | "fixed32", 36 | "fixed64", 37 | "sfixed32", 38 | "sfixed64", 39 | "bool", 40 | "string", 41 | "bytes" 42 | ], 43 | "literal": ["true", "false"] 44 | }, 45 | contains: [ 46 | QUOTE_STRING_MODE, 47 | NUMBER_MODE, 48 | C_LINE_COMMENT_MODE, 49 | C_BLOCK_COMMENT_MODE, 50 | Mode( 51 | match: ["(message|enum|service)\\s+", "[a-zA-Z]\\w*"], 52 | scope: {"1": "keyword", "2": "title.class"}, 53 | ), 54 | Mode( 55 | className: "function", 56 | beginKeywords: "rpc", 57 | end: "[{;]", 58 | excludeEnd: true, 59 | keywords: "rpc returns", 60 | ), 61 | Mode( 62 | begin: "^\\s*[A-Z_]+(?=\\s*=[^\\n]+;\$)", 63 | ), 64 | ], 65 | ); 66 | -------------------------------------------------------------------------------- /highlighting/lib/languages/python-repl.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final pythonRepl = Language( 11 | id: "python-repl", 12 | refs: {}, 13 | aliases: ["pycon"], 14 | contains: [ 15 | Mode( 16 | className: "meta.prompt", 17 | starts: Mode( 18 | end: " |\$", 19 | starts: Mode( 20 | end: "\$", 21 | subLanguage: ["python"], 22 | ), 23 | ), 24 | variants: [ 25 | Mode( 26 | begin: "^>>>(?=[ ]|\$)", 27 | ), 28 | Mode( 29 | begin: "^\\.\\.\\.(?=[ ]|\$)", 30 | ), 31 | ], 32 | ), 33 | ], 34 | ); 35 | -------------------------------------------------------------------------------- /highlighting/lib/languages/q.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final q = Language( 11 | id: "q", 12 | refs: {}, 13 | name: "Q", 14 | aliases: ["k", "kdb"], 15 | keywords: { 16 | "\$pattern": "(`?)[A-Za-z0-9_]+\\b", 17 | "keyword": "do while select delete by update from", 18 | "literal": "0b 1b", 19 | "built_in": 20 | "neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum", 21 | "type": 22 | "`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid" 23 | }, 24 | contains: [ 25 | C_LINE_COMMENT_MODE, 26 | QUOTE_STRING_MODE, 27 | C_NUMBER_MODE, 28 | ], 29 | ); 30 | -------------------------------------------------------------------------------- /highlighting/lib/languages/rib.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final rib = Language( 11 | id: "rib", 12 | refs: {}, 13 | name: "RenderMan RIB", 14 | keywords: 15 | "ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd", 16 | illegal: "%\$#][ ]?", 19 | starts: Mode( 20 | end: "[^\\\\](?=\\s*\$)", 21 | subLanguage: ["bash"], 22 | ), 23 | ), 24 | ], 25 | ); 26 | -------------------------------------------------------------------------------- /highlighting/lib/languages/subunit.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final subunit = Language( 11 | id: "subunit", 12 | refs: {}, 13 | name: "SubUnit", 14 | case_insensitive: true, 15 | contains: [ 16 | Mode( 17 | className: "string", 18 | begin: "\\[\n(multipart)?", 19 | end: "\\]\n", 20 | ), 21 | Mode( 22 | className: "string", 23 | begin: "\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z", 24 | ), 25 | Mode( 26 | className: "string", 27 | begin: "(\\+|-)\\d+", 28 | ), 29 | Mode( 30 | className: "keyword", 31 | relevance: 10, 32 | variants: [ 33 | Mode( 34 | begin: 35 | "^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?", 36 | ), 37 | Mode( 38 | begin: "^progress(:?)(\\s+)?(pop|push)?", 39 | ), 40 | Mode( 41 | begin: "^tags:", 42 | ), 43 | Mode( 44 | begin: "^time:", 45 | ), 46 | ], 47 | ), 48 | ], 49 | ); 50 | -------------------------------------------------------------------------------- /highlighting/lib/languages/taggerscript.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final taggerscript = Language( 11 | id: "taggerscript", 12 | refs: {}, 13 | name: "Tagger Script", 14 | contains: [ 15 | Mode( 16 | className: "comment", 17 | begin: "\\\$noop\\(", 18 | end: "\\)", 19 | contains: [ 20 | Mode( 21 | begin: "\\\\[()]", 22 | ), 23 | Mode( 24 | begin: "\\(", 25 | end: "\\)", 26 | contains: [ 27 | Mode( 28 | begin: "\\\\[()]", 29 | ), 30 | ModeSelfReference(), 31 | ], 32 | ), 33 | ], 34 | relevance: 10, 35 | ), 36 | Mode( 37 | className: "keyword", 38 | begin: "\\\$[_a-zA-Z0-9]+(?=\\()", 39 | ), 40 | Mode( 41 | className: "variable", 42 | begin: "%[_a-zA-Z0-9:]+%", 43 | ), 44 | Mode( 45 | className: "symbol", 46 | begin: "\\\\[\\\\nt\$%,()]", 47 | ), 48 | Mode( 49 | className: "symbol", 50 | begin: "\\\\u[a-fA-F0-9]{4}", 51 | ), 52 | ], 53 | ); 54 | -------------------------------------------------------------------------------- /highlighting/lib/languages/tap.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final tap = Language( 11 | id: "tap", 12 | refs: {}, 13 | name: "Test Anything Protocol", 14 | case_insensitive: true, 15 | contains: [ 16 | HASH_COMMENT_MODE, 17 | Mode( 18 | className: "meta", 19 | variants: [ 20 | Mode( 21 | begin: "^TAP version (\\d+)\$", 22 | ), 23 | Mode( 24 | begin: "^1\\.\\.(\\d+)\$", 25 | ), 26 | ], 27 | ), 28 | Mode( 29 | begin: "---\$", 30 | end: "\\.\\.\\.\$", 31 | subLanguage: ["yaml"], 32 | relevance: 0, 33 | ), 34 | Mode( 35 | className: "number", 36 | begin: " (\\d+) ", 37 | ), 38 | Mode( 39 | className: "symbol", 40 | variants: [ 41 | Mode( 42 | begin: "^ok", 43 | ), 44 | Mode( 45 | begin: "^not ok", 46 | ), 47 | ], 48 | ), 49 | ], 50 | ); 51 | -------------------------------------------------------------------------------- /highlighting/lib/languages/thrift.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final thrift = Language( 11 | id: "thrift", 12 | refs: {}, 13 | name: "Thrift", 14 | keywords: { 15 | "keyword": [ 16 | "namespace", 17 | "const", 18 | "typedef", 19 | "struct", 20 | "enum", 21 | "service", 22 | "exception", 23 | "void", 24 | "oneway", 25 | "set", 26 | "list", 27 | "map", 28 | "required", 29 | "optional" 30 | ], 31 | "type": ["bool", "byte", "i16", "i32", "i64", "double", "string", "binary"], 32 | "literal": "true false" 33 | }, 34 | contains: [ 35 | QUOTE_STRING_MODE, 36 | NUMBER_MODE, 37 | C_LINE_COMMENT_MODE, 38 | C_BLOCK_COMMENT_MODE, 39 | Mode( 40 | className: "class", 41 | beginKeywords: "struct enum service exception", 42 | end: "\\{", 43 | illegal: "\\n", 44 | contains: [ 45 | Mode( 46 | scope: "title", 47 | begin: "[a-zA-Z]\\w*", 48 | relevance: 0, 49 | starts: Mode( 50 | endsWithParent: true, 51 | excludeEnd: true, 52 | ), 53 | ), 54 | ], 55 | ), 56 | Mode( 57 | begin: "\\b(set|list|map)\\s*<", 58 | keywords: { 59 | "type": [ 60 | "bool", 61 | "byte", 62 | "i16", 63 | "i32", 64 | "i64", 65 | "double", 66 | "string", 67 | "binary", 68 | "set", 69 | "list", 70 | "map" 71 | ] 72 | }, 73 | end: ">", 74 | contains: [ 75 | ModeSelfReference(), 76 | ], 77 | ), 78 | ], 79 | ); 80 | -------------------------------------------------------------------------------- /highlighting/lib/languages/vala.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final vala = Language( 11 | id: "vala", 12 | refs: {}, 13 | name: "Vala", 14 | keywords: { 15 | "keyword": 16 | "char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var", 17 | "built_in": "DBus GLib CCode Gee Object Gtk Posix", 18 | "literal": "false true null" 19 | }, 20 | contains: [ 21 | Mode( 22 | className: "class", 23 | beginKeywords: "class interface namespace", 24 | end: "\\{", 25 | excludeEnd: true, 26 | illegal: "[^,:\\n\\s\\.]", 27 | contains: [ 28 | UNDERSCORE_TITLE_MODE, 29 | ], 30 | ), 31 | C_LINE_COMMENT_MODE, 32 | C_BLOCK_COMMENT_MODE, 33 | Mode( 34 | className: "string", 35 | begin: "\"\"\"", 36 | end: "\"\"\"", 37 | relevance: 5, 38 | ), 39 | APOS_STRING_MODE, 40 | QUOTE_STRING_MODE, 41 | C_NUMBER_MODE, 42 | Mode( 43 | className: "meta", 44 | begin: "^#", 45 | end: "\$", 46 | ), 47 | ], 48 | ); 49 | -------------------------------------------------------------------------------- /highlighting/lib/languages/vbscript-html.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ignore_for_file: lines_longer_than_80_chars 4 | // ignore_for_file: prefer_single_quotes 5 | // ignore_for_file: unnecessary_raw_strings 6 | // ignore_for_file: use_raw_strings 7 | 8 | import '../src/language_definition_common.dart'; 9 | 10 | final vbscriptHtml = Language( 11 | id: "vbscript-html", 12 | refs: {}, 13 | name: "VBScript in HTML", 14 | subLanguage: ["xml"], 15 | contains: [ 16 | Mode( 17 | begin: "<%", 18 | end: "%>", 19 | subLanguage: ["vbscript"], 20 | ), 21 | ], 22 | ); 23 | -------------------------------------------------------------------------------- /highlighting/lib/src/compiled_language.dart: -------------------------------------------------------------------------------- 1 | import 'compiled_mode.dart'; 2 | 3 | class CompiledLanguage { 4 | bool isCompiled = false; 5 | List contains = []; 6 | Map keywords = {}; 7 | } 8 | -------------------------------------------------------------------------------- /highlighting/lib/src/compiled_scope.dart: -------------------------------------------------------------------------------- 1 | class CompiledScope { 2 | Map data = {}; 3 | Map emit = {}; 4 | bool? multi; 5 | String? wrap; 6 | 7 | CompiledScope({ 8 | Map data = const {}, 9 | Map emit = const {}, 10 | this.multi, 11 | this.wrap, 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /highlighting/lib/src/const/literals.dart: -------------------------------------------------------------------------------- 1 | const $beginScope = 'beginScope'; 2 | const $endScope = 'endScope'; 3 | 4 | /// key for value of type `Map` 5 | const $emit = '_emit'; 6 | 7 | /// key for value of type `bool` 8 | const $multi = 'multi'; 9 | 10 | const $wrap = 'wrap'; 11 | 12 | const $begin = 'begin'; 13 | const $end = 'end'; 14 | const $illegal = 'illegal'; 15 | 16 | const kDefaultKeywordScope = 'keyword'; 17 | 18 | const $pattern = r'$pattern'; 19 | 20 | const $beginMatch = 'beginMatch'; 21 | -------------------------------------------------------------------------------- /highlighting/lib/src/const/magic_numbers.dart: -------------------------------------------------------------------------------- 1 | const kMaxKeywordHits = 7; 2 | const kNoMatch = -5353636; 3 | const kMaxIterations = 100000; 4 | -------------------------------------------------------------------------------- /highlighting/lib/src/const/regexes.dart: -------------------------------------------------------------------------------- 1 | final kBackRefRe = RegExp(r'\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\.'); 2 | 3 | const kCommonKeywords = [ 4 | 'of', 5 | 'and', 6 | 'for', 7 | 'in', 8 | 'not', 9 | 'or', 10 | 'if', 11 | 'then', 12 | 'parent', // common variable name 13 | 'list', // common variable name 14 | 'value' // common variable name 15 | ]; 16 | -------------------------------------------------------------------------------- /highlighting/lib/src/extension/before_match.dart: -------------------------------------------------------------------------------- 1 | import '../mode.dart'; 2 | import 'reg_exp.dart'; 3 | 4 | void beforeMatchExt(Mode mode, [Mode? parent]) { 5 | if (mode.beforeMatch == null) { 6 | return; 7 | } 8 | 9 | if (mode.starts != null) { 10 | throw Exception('beforeMatch cannot be used with starts'); 11 | } 12 | 13 | var originalMode = Mode.inherit(mode); 14 | mode = Mode(); 15 | 16 | mode.keywords = originalMode.keywords; 17 | mode.begin = concat( 18 | [ 19 | originalMode.beforeMatch, 20 | lookahead(originalMode.begin), 21 | ], 22 | ); 23 | mode.starts = Mode( 24 | relevance: 0, 25 | contains: [ 26 | Mode.inherit( 27 | originalMode, 28 | Mode(endsParent: true), 29 | ), 30 | ], 31 | ); 32 | 33 | mode.relevance = 0; 34 | originalMode.beforeMatch = null; 35 | } 36 | -------------------------------------------------------------------------------- /highlighting/lib/src/html_renderer.dart: -------------------------------------------------------------------------------- 1 | import 'package:collection/collection.dart'; 2 | import 'package:highlighting/src/node.dart'; 3 | 4 | import 'result.dart'; 5 | 6 | const closeSpan = ''; 7 | 8 | class HtmlRenderer { 9 | String _buffer = ''; 10 | String classPrefix; 11 | 12 | String get value => _buffer; 13 | 14 | HtmlRenderer({ 15 | required this.classPrefix, 16 | required Result result, 17 | }) { 18 | result.walk(this); 19 | } 20 | 21 | void addText(String text) { 22 | _buffer += _escape(text); 23 | } 24 | 25 | void openNode(Node node) { 26 | if (!emitsWrappingTag(node)) { 27 | return; 28 | } 29 | 30 | String className; 31 | if (node.sublanguage == true) { 32 | className = 'language-${node.language!}'; 33 | } else { 34 | className = scopeToCSSClass(node.className!, classPrefix); 35 | } 36 | 37 | span(className); 38 | } 39 | 40 | void closeNode(Node node) { 41 | if (!emitsWrappingTag(node)) { 42 | return; 43 | } 44 | 45 | _buffer += closeSpan; 46 | } 47 | 48 | void span(String className) { 49 | _buffer += ''; 50 | } 51 | } 52 | 53 | bool emitsWrappingTag(Node node) { 54 | return node.className != null || 55 | (node.sublanguage == true && node.language != null); 56 | } 57 | 58 | String scopeToCSSClass(String name, String prefix) { 59 | if (name.contains('.')) { 60 | return prefix + name.split('.').join(' '); 61 | } 62 | 63 | return '$prefix$name'; 64 | } 65 | 66 | String _escape(String value) { 67 | return value 68 | .replaceAll(RegExp(r'&'), '&') 69 | .replaceAll(RegExp(r'<'), '<') 70 | .replaceAll(RegExp(r'>'), '>') 71 | .replaceAll('"', '"') 72 | .replaceAll('\'', '''); 73 | } 74 | -------------------------------------------------------------------------------- /highlighting/lib/src/js_style_reg_exp.dart: -------------------------------------------------------------------------------- 1 | import 'package:collection/collection.dart'; 2 | 3 | import 'extension/reg_exp.dart'; 4 | import 'js_style_reg_exp_match.dart'; 5 | import 'utils.dart'; 6 | 7 | /// A regular expression that is optionally stateful if [global] is true. 8 | class JsStyleRegExp { 9 | int lastIndex = 0; 10 | final RegExp regex; 11 | 12 | /// Global flag means that when exec is called continuously, 13 | /// if it returns non-null result, it will store the last index of the match, 14 | /// and the next calls of the exec will be performed on input starting from the lastIndex. 15 | final bool global; 16 | 17 | JsStyleRegExp( 18 | RegExp regex, { 19 | this.global = false, 20 | }) : regex = surroundGroupIfNeeded(regex); 21 | 22 | JsStyleRegExpMatch? exec(String input) { 23 | final match = regex.allMatches(input, lastIndex).firstOrNull; 24 | if (match == null) { 25 | lastIndex = 0; 26 | return null; 27 | } 28 | 29 | final lastIndexSnapshot = lastIndex; 30 | 31 | lastIndex = match.end; 32 | 33 | return JsStyleRegExpMatch( 34 | match: match, 35 | input: input, 36 | executedRegex: regex, 37 | startIndex: lastIndexSnapshot, 38 | ); 39 | } 40 | } 41 | 42 | RegExp surroundGroupIfNeeded(RegExp regex) { 43 | final pattern = source(regex); 44 | if (pattern != null && !pattern.contains('(') && !pattern.contains(')')) { 45 | return RegExp( 46 | '($pattern)', 47 | multiLine: regex.isMultiLine, 48 | unicode: regex.isUnicode, 49 | dotAll: regex.isDotAll, 50 | caseSensitive: regex.isCaseSensitive, 51 | ); 52 | } 53 | 54 | return regex; 55 | } 56 | -------------------------------------------------------------------------------- /highlighting/lib/src/js_style_reg_exp_match.dart: -------------------------------------------------------------------------------- 1 | import 'mode.dart'; 2 | 3 | class JsStyleRegExpMatch { 4 | final RegExp executedRegex; 5 | final RegExpMatch match; 6 | final String input; 7 | final int startIndex; 8 | int position = 0; 9 | Mode? rule; 10 | List _matchGroups = []; 11 | 12 | /// 'begin' | 'end' | 'illegal' -> see constants 13 | String? matchType; 14 | 15 | JsStyleRegExpMatch({ 16 | required this.match, 17 | required this.input, 18 | required this.executedRegex, 19 | this.startIndex = 0, 20 | }) { 21 | _matchGroups.add(match.group(0)); 22 | for (int i = 1; i <= match.groupCount; i++) { 23 | _matchGroups.add(match.group(i)); 24 | } 25 | } 26 | 27 | int get index => match.start; 28 | 29 | int get length => _matchGroups.length; 30 | 31 | String? operator [](int index) { 32 | if (_matchGroups.isEmpty || index >= _matchGroups.length) { 33 | return null; 34 | } 35 | return _matchGroups[index]; 36 | } 37 | 38 | int findIndex(bool Function(String? el, int index) callback) { 39 | for (int i = 0; i <= match.groupCount; i++) { 40 | if (callback(match.group(i), i)) { 41 | return i; 42 | } 43 | } 44 | 45 | return -1; 46 | } 47 | 48 | void splice(int start, int end) { 49 | _matchGroups.removeRange( 50 | start + 1, end + (end >= _matchGroups.length ? 0 : 1)); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /highlighting/lib/src/language.dart: -------------------------------------------------------------------------------- 1 | import 'mode.dart'; 2 | 3 | class Language extends Mode { 4 | /// The file name without '.js' extension from which the language is ported. 5 | final String id; 6 | 7 | final List aliases; 8 | 9 | final bool case_insensitive; 10 | 11 | /// `String | Map` 12 | dynamic classNameAliases; 13 | 14 | final List compilerExtensions; 15 | 16 | final bool disableAutodetect; 17 | 18 | // TODO(alexeyinkin): Make non-nullable and required after is is in stable: https://github.com/highlightjs/highlight.js/issues/3769 19 | final String? name; 20 | 21 | final Map refs; 22 | 23 | final String? supersetOf; 24 | 25 | final bool unicodeRegex; 26 | 27 | Language({ 28 | required this.id, 29 | required this.refs, 30 | this.aliases = const [], 31 | this.case_insensitive = false, 32 | this.classNameAliases, 33 | this.compilerExtensions = const [], 34 | this.disableAutodetect = false, 35 | this.name, 36 | this.supersetOf, 37 | this.unicodeRegex = false, 38 | super.contains, 39 | super.illegal, 40 | super.keywords, 41 | super.subLanguage, 42 | super.relevance, 43 | }); 44 | } 45 | -------------------------------------------------------------------------------- /highlighting/lib/src/language_definition_common.dart: -------------------------------------------------------------------------------- 1 | export 'callbacks.dart'; 2 | export 'common_modes.g.dart'; 3 | export 'language.dart'; 4 | export 'languages/mathematica_symbols.g.dart'; 5 | export 'mode.dart'; 6 | export 'nulls.dart'; 7 | -------------------------------------------------------------------------------- /highlighting/lib/src/node.dart: -------------------------------------------------------------------------------- 1 | class Node { 2 | String? className; 3 | String? value; 4 | List children; 5 | bool noPrefix; 6 | 7 | bool? sublanguage; 8 | String? language; 9 | 10 | Node({ 11 | this.className, 12 | this.value, 13 | this.noPrefix = false, 14 | List? children, 15 | }) : children = children ?? []; 16 | 17 | @override 18 | String toString() { 19 | return 'Node(' 20 | 'className: ${className == null ? 'null' : "'$className'"},' 21 | 'value: ${value == null ? 'null' : "'$value'"},' 22 | 'children: [${children.map((e) => e.toString()).join(',')}],' 23 | 'noPrefix: $noPrefix,' 24 | 'sublanguage: $sublanguage,' 25 | 'language: ${language == null ? 'null' : "'$language'"},' 26 | ')'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /highlighting/lib/src/nulls.dart: -------------------------------------------------------------------------------- 1 | /// A constant that is read as `null` but overwrites old value in `copyWith`. 2 | /// 3 | /// In JavaScript, `Object.assign()` overwrites any properties a new map 4 | /// contains even if they are `null`. `Mode` objects are merged this way 5 | /// when a `Mode` contains `variants`. 6 | /// 7 | /// This behavior is ported to Dart as [Mode.copyWith] method 8 | /// but it cannot overwrite a value with `null` because `null` is treated 9 | /// as "do not overwrite" there. 10 | /// 11 | /// So we need this magic value that returns `null` when read with a getter 12 | /// but can overwrite a value when objects are merged. 13 | const overwritingNullString = 14 | 'This is to preserve null string when it is explicitly passed to the constructor.'; 15 | -------------------------------------------------------------------------------- /highlighting/lib/src/response.dart: -------------------------------------------------------------------------------- 1 | import 'mode.dart'; 2 | 3 | class Response { 4 | Mode mode; 5 | bool isMatchIgnored = false; 6 | Map data = {}; 7 | 8 | Response({ 9 | required this.mode, 10 | }) { 11 | mode.data ??= {}; 12 | data = mode.data!; 13 | } 14 | 15 | void ignoreMatch() { 16 | isMatchIgnored = true; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /highlighting/lib/src/utils.dart: -------------------------------------------------------------------------------- 1 | /// Extends builtin String.substring function 2 | /// 3 | /// RangeError: Value not in range 4 | String substring(String input, int startIndex, [int? endIndex]) { 5 | endIndex ??= input.length; 6 | 7 | if (startIndex > endIndex) { 8 | var tmp = startIndex; 9 | startIndex = endIndex; 10 | endIndex = tmp; 11 | } 12 | 13 | if (startIndex < 0 || startIndex > input.length) { 14 | startIndex = 0; 15 | } 16 | 17 | if (endIndex < 0 || endIndex > input.length) { 18 | endIndex = input.length; 19 | } 20 | 21 | return input.substring(startIndex, endIndex); 22 | } 23 | -------------------------------------------------------------------------------- /highlighting/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: highlighting 2 | description: Syntax highlighting for Dart with lots of languages and themes support. 3 | version: 0.9.1+11.8.0 4 | homepage: https://github.com/akvelon/dart-highlighting 5 | 6 | environment: 7 | sdk: ">=2.17.0 <3.0.0" 8 | 9 | dependencies: 10 | collection: ^1.15.0 11 | equatable: ^2.0.5 12 | meta: ^1.7.0 13 | tuple: ^2.0.1 14 | 15 | dev_dependencies: 16 | path: ^1.8.0 17 | test: ^1.16.5 18 | total_lints: ^2.19.0 19 | -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | rootProject.name = "dart-highlighting" 2 | 3 | include(":flutter_highlighting") 4 | include(":highlighting") 5 | include(":tool") 6 | -------------------------------------------------------------------------------- /tool/.gitignore: -------------------------------------------------------------------------------- 1 | js/ 2 | node_modules/ 3 | package-lock.json 4 | -------------------------------------------------------------------------------- /tool/.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "trailingComma": "all" 3 | } 4 | -------------------------------------------------------------------------------- /tool/build.gradle.kts: -------------------------------------------------------------------------------- 1 | tasks.register("precommit") { 2 | dependsOn("npxTsc") 3 | dependsOn("format") 4 | } 5 | 6 | tasks.register("npxTsc") { 7 | doLast { 8 | exec { 9 | executable("npm") 10 | args("install") 11 | } 12 | 13 | exec { 14 | executable("npx") 15 | args("tsc") 16 | } 17 | } 18 | } 19 | 20 | tasks.register("format") { 21 | doLast { 22 | exec { 23 | executable("npx") 24 | args("prettier", "--write", "src") 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tool/js/gallery.js: -------------------------------------------------------------------------------- 1 | import fs from "fs"; 2 | import path from "path"; 3 | 4 | export function example() { 5 | // Generate code example dart files 6 | let code = "var exampleMap = {"; 7 | // ["dart"] 8 | fs.readdirSync("../vendor/highlight.js/test/detect").forEach(langName => { 9 | if (langName.endsWith(".js")) return; 10 | 11 | const content = fs 12 | .readFileSync( 13 | path.resolve( 14 | "../vendor/highlight.js/test/detect", 15 | langName, 16 | "default.txt" 17 | ), 18 | "utf8" 19 | ) 20 | .replace(/\\/g, "\\\\") 21 | .replace(/'/g, "\\'") 22 | .replace(/\$/g, "\\$") 23 | .replace(/\n/g, "\\n"); 24 | code += `'${langName}':'${content}',`; 25 | }); 26 | code += "};"; 27 | fs.writeFileSync("../flutter_highlight/example/lib/example_map.dart", code); 28 | } 29 | -------------------------------------------------------------------------------- /tool/js/gulpfile.esm.js: -------------------------------------------------------------------------------- 1 | import { execSync } from "child_process"; 2 | import gulp from "gulp"; 3 | import * as h from "./highlight"; 4 | import * as fh from "./flutter-highlight"; 5 | import * as gallery from "./gallery"; 6 | 7 | export function watch(cb) { 8 | gulp.watch("../flutter_highlight/lib/**/*", { ignoreInitial: false }); 9 | gulp.watch( 10 | "../vendor/highlight.js/test/**/*", 11 | { ignoreInitial: false }, 12 | gallery.example 13 | ); 14 | gulp.watch( 15 | "../vendor/highlight.js/src/styles/**/*", 16 | { ignoreInitial: false }, 17 | fh.style 18 | ); 19 | cb(); 20 | } 21 | 22 | export function cb () { 23 | h.allModes(); 24 | h.commonModes(); 25 | gallery.example(); 26 | fh.style(); 27 | 28 | // FIXME: use common used bash 29 | try { 30 | execSync(`dartfmt --overwrite ../**/*.dart`, { shell: "/bin/zsh" }); 31 | } catch (err) { 32 | // CI env has no zsh, ignore error here 33 | console.log(err); 34 | } 35 | cb(); 36 | }; 37 | 38 | watch(cb); -------------------------------------------------------------------------------- /tool/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "checkJs": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /tool/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tool", 3 | "version": "0.0.1", 4 | "private": true, 5 | "type": "module", 6 | "dependencies": { 7 | "circular-json": "^0.5.9", 8 | "esm": "^3.2.25", 9 | "gulp": "^3.9.1", 10 | "highlight.js": "11.8.0", 11 | "lodash": "^4.17.15", 12 | "postcss": "^7.0.17", 13 | "typescript": "^5.0.3" 14 | }, 15 | "devDependencies": { 16 | "@types/circular-json": "^0.4.0", 17 | "@types/lodash": "^4.14.192", 18 | "@types/node": "^12.6.9", 19 | "prettier": "^2.8.7" 20 | }, 21 | "scripts": { 22 | "start": "gulp" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tool/src/common.ts: -------------------------------------------------------------------------------- 1 | export const NOTICE_COMMENT = "// GENERATED CODE - DO NOT MODIFY BY HAND\n\n"; 2 | 3 | const ignore_for_file = [ 4 | "lines_longer_than_80_chars", 5 | "prefer_single_quotes", 6 | "unnecessary_raw_strings", 7 | "use_raw_strings", 8 | ]; 9 | 10 | export const IGNORE_FOR_FILE_COMMENT = 11 | ignore_for_file.map((s) => `// ignore_for_file: ${s}\n`).join("") + "\n"; 12 | -------------------------------------------------------------------------------- /tool/src/common_modes.ts: -------------------------------------------------------------------------------- 1 | import hljs, { Mode } from "highlight.js"; 2 | 3 | // Map of all modes exported from HighlightJS. 4 | export const commonModes = importCommonModes(); 5 | 6 | function importCommonModes(): Map { 7 | const allExported = Object.entries(hljs); 8 | const modeArray = allExported.filter(([key, value]) => isMode(key, value)); 9 | return new Map(modeArray as [string, Mode][]); 10 | } 11 | 12 | function isMode(key: string, value: any): boolean { 13 | // SCREAMING_CAPS only. 14 | if (!/^[A-Z][_0-9A-Z]*$/.test(key)) { 15 | return false; 16 | } 17 | 18 | if (key.endsWith("_RE")) { 19 | return false; 20 | } 21 | 22 | if (typeof value === "function") { 23 | return false; 24 | } 25 | 26 | return true; 27 | } 28 | -------------------------------------------------------------------------------- /tool/src/languages/mathematica.ts: -------------------------------------------------------------------------------- 1 | import { readFileSync, writeFileSync } from "fs"; 2 | 3 | import { IGNORE_FOR_FILE_COMMENT, NOTICE_COMMENT } from "../common.js"; 4 | 5 | export function portMathematicaSpecific(): void { 6 | const fileName = "../node_modules/highlight.js/lib/languages/mathematica.js"; 7 | const data = readFileSync(fileName, "utf8"); 8 | 9 | const symbolSet = data.match(/SYSTEM_SYMBOLS\s*=\s*(\[[^\]]*\])/s); 10 | if (symbolSet === null || symbolSet[1] === null) { 11 | throw Error("Couldn't find symbol set of Mathematica."); 12 | } 13 | 14 | const output = 15 | NOTICE_COMMENT + 16 | IGNORE_FOR_FILE_COMMENT + 17 | "final SYSTEM_SYMBOLS = " + 18 | symbolSet[1].replace(/\[/, "{").replace(/\]/, "}").replace(/\s"/g, 'r"') + 19 | ";"; 20 | 21 | writeFileSync( 22 | "../../highlighting/lib/src/languages/mathematica_symbols.g.dart", 23 | output, 24 | ); 25 | } 26 | -------------------------------------------------------------------------------- /tool/src/types/highlight.js.d.ts: -------------------------------------------------------------------------------- 1 | // This is a placeholder so that we can import the below module that has no type information. 2 | declare module "highlight.js"; 3 | -------------------------------------------------------------------------------- /tool/src/types/javascript.d.ts: -------------------------------------------------------------------------------- 1 | // This is a placeholder so that we can import the below module that has no type information. 2 | declare module "highlight.js/lib/languages/javascript"; 3 | -------------------------------------------------------------------------------- /tool/src/types/mathematica.d.ts: -------------------------------------------------------------------------------- 1 | // This is a placeholder so that we can import the below module that has no type information. 2 | declare module "highlight.js/lib/languages/mathematica"; 3 | -------------------------------------------------------------------------------- /tool/src/util.ts: -------------------------------------------------------------------------------- 1 | export type StringObject = { [key: string]: T }; 2 | 3 | export function expand(arrays: T[][]): T[] { 4 | const result: T[] = []; 5 | 6 | for (const arr of arrays) { 7 | result.push(...arr); 8 | } 9 | 10 | return result; 11 | } 12 | -------------------------------------------------------------------------------- /tool/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "es2020", 4 | "moduleResolution": "nodenext", 5 | "noImplicitReturns": true, 6 | "noUnusedLocals": true, 7 | "outDir": "js", 8 | "sourceMap": true, 9 | "strict": true, 10 | "preserveConstEnums": true, 11 | "target": "ES2021" 12 | }, 13 | 14 | "include": ["src/**/*"], 15 | "exclude": ["node_modules"] 16 | } 17 | -------------------------------------------------------------------------------- /tool/utils.js: -------------------------------------------------------------------------------- 1 | export const NOTICE_COMMENT = "// GENERATED CODE - DO NOT MODIFY BY HAND\n\n"; 2 | --------------------------------------------------------------------------------