flutter rich code editor
a flutter based code editor.
getting started
there are two main components of the rich code editor:
- editor
- syntax highlighter
the editor is a text area which is identical to flutter’s textfield
widget. however, unlike a regular textfield
the editor uses an instance of syntax highlighter object to parse and highlight code syntax.
since the editor itself is independent of the syntax highlighting rules, the same editor can be used for any other programming langugages. only the syntax highlighter implentation needs to be created separately for each new programming language.
the example demo uses a dummy syntax highlighter implementation dummysyntaxhighlighter
.
get started by creating your own implementation for syntaxhighlighterbase
class.
the syntax highlight logic part is not much implemented in this package as that will change as per the choice of programming language.
Comments are closed.