highlight.dart
highlight.dart copied to clipboard
Syntax highlighting for Dart and Flutter
I understand that this is a port from https://highlightjs.org I guess the port was automated to some extent, because language files contain the comment: ```dart // GENERATED CODE - DO...
For this input: ```java class MyClass { private string str = "abc"; } ``` we get the correct result:  Make this string literal [multiline](https://stackoverflow.com/a/50155171/11382675): ```java class MyClass { private...
For this input: ```java class MyClass { } ``` we get the correct result:  Add a number sign: ```java class MyClass { }# ``` and nothing is parsed: ...
will close #24 and git-touch/git-touch#204 @pd4d10 is this okay or should it be made a flag for the user to enable?
This feature builds on the changes made in #34 to also perform the conversion of `List` to `List` in the background.
This PR adds a `HighlightBackgroundEnvironment` widget that can be added to the widget tree. `HighlightBackgroundEnvironment` uses a background isolate to perform expensive text processing functionality that `HighlightView` can access through...
At the moment, the HighlightView widget parses text in the build method. This is very inefficient. This PR implements a StatefulWidget instead, caching the parsing results across rebuilts.
Is there anyway I use the syntax highlighter for editable textfields?
Support for line numbers in files?
I found that the syntax I needed was not highlighted in any way. I decided to check the rest of the languages and found more recognition errors.