akvelon / flutter-code-editor

Flutter Code Editor is a multi-platform code editor supporting syntax highlighting, code blocks folding, autocompletion, read-only code blocks, hiding specific code blocks, themes, and more.
https://akvelon.com
Apache License 2.0
197 stars 47 forks source link

how can i add a not exist language #267

Open i-xiao-zi opened 6 months ago

i-xiao-zi commented 6 months ago

i have a language not exists in the language lists, how can i import my language mode to my project.

i try like this, but its not right

  late CodeController _controller;
  @override
  void initState(){
    super.initState();
    highlight.registerLanguage('hello', hello);
    _controller = CodeController(
      text: '#abc',
      language: hello,
    );
  }