Open TrapinchO opened 3 years ago
This is a good idea, but it's also a big project. Do you happen to know of a good open source text editor that I could just consume and drop into PolyGlot? The one that exists in it is totally custom, which I recognize now was a big mistake.
This is something I intend to do eventually, but it's gonna be a big task.
Found these three things, licenses should be fine
Markdown text editor https://github.com/commonmark/commonmark-java
Code highlighter (supports markdown)
Seems to be a swing component (in java) for text editing https://github.com/bobbylight/RSyntaxTextArea
CodeView-Android is MIT licensed, but was last updated 6 years ago. I'll look into the following for markdown support
Plugin | License |
---|---|
common-mark | BSD-2 |
flexmark | BSD-2 |
would also address https://github.com/DraqueT/PolyGlot/issues/975
1) markdown support It would be nice if it would be possible properly format grammar sections, such as making text bold underlined or creating tables. No highlight/indentation support is needed, though it would be nice.
2) undo/redo button no explanation here need
3) separation into different files It would make things much easier if we could just import/export pages just by dragging
.txt
(or.md
) files in and out of a folder. It could also clear stuff inside the main project.xml
file. A folder structure could be eithergrammar/<chapter name>/<page name>
orgrammar/<chapter name>_<page name>
. (this is also partially addressed in #931)Other possible additions:
edit: added minor additions