highlight.dart icon indicating copy to clipboard operation
highlight.dart copied to clipboard

Syntax highlighting for Dart and Flutter

Results 49 highlight.dart issues
Sort by recently updated
recently updated
newest added

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: ![image](https://user-images.githubusercontent.com/44893228/182778144-108afa6f-524f-4423-bdcc-8a9c11665abc.png) 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: ![image](https://user-images.githubusercontent.com/44893228/182590190-ed5ae190-b7f8-432f-bef8-d604f1611cb7.png) Add a number sign: ```java class MyClass { }# ``` and nothing is parsed: ![image](https://user-images.githubusercontent.com/44893228/182590389-c5bb76ad-f857-443f-b680-9adb92e23fd7.png)...

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.