discord / SimpleAST

Extensible Android library for both parsing text into Abstract Syntax Trees and rendering those trees as rich text.
Other
368 stars 31 forks source link

[Feature] Add support for ANSI colors #41

Open drewhoener opened 2 years ago

drewhoener commented 2 years ago

Desktop supports Code block highlighting for ANSI colors, which is great for formatting large blocks, especially for spicing up embed fields image But the same stuff isn't available on iOS/Android image

Any way this could be added?

VoltrexKeyva commented 2 years ago

This can certainly be added, however since the Discord mobile Android builds are being rewritten in React-Native, it is unknown whether it'll still use this SimpleAST library in some way for the syntax highlighting, so it's better to wait for that and figure it out instead of wasting time implementing ANSI highlighting.

But for iOS, the Discord mobile iOS builds never supported syntax highlighting and does not use this SimpleST library, so that out of the way I guess.