code_field icon indicating copy to clipboard operation
code_field copied to clipboard

A customizable code text field supporting syntax highlighting

Results 36 code_field issues
Sort by recently updated
recently updated
newest added

Here we use `onKey` to set the listener on `FocusNode`: https://github.com/BertrandBev/code_field/blob/66d4e56f14bc0073cd967149a929c6b670ffc74c/lib/src/code_field/code_field.dart#L121 The doc says it is a legacy property and will be deprecated in the future. The recommended alternative is...

`CodeController.onChange` can be replaced with ```dart controller.addListener(() { final text = controller.rawText; }); ``` If we delete `onChange()`, the benefits are: - User code is less messy. If they use...

- `styleList` - `modifierMap` - `styleRegExp`

next-breaking-release

hi, any tips how to implement autocomplete and snippets for desktop? thanks. I wonder if this is even possible.

styleList is never emptied but can grow on each rebuild depending of webSpaceFix, stringMap, and patternMap. To fix this, styleRegExp and styleList should be computed once at initialization.

bug

When `webSpaceFix` is omitted (defaults to `true`), `CodeController.text` returns text with dots. For it to return the intact text, `webSpaceFix` should be passed as `false`. But when the bug that...

next-breaking-release

I'm currently using the CodeEditor for MacOS and experiencing an issue where the scroll highlight shakes and shifts when dragging past the bounds of the CodeEditor. I'm unsure where this...