Feature request: Syntax highlighting in code blocks #85

Open
opened 2020-11-15 20:52:43 +00:00 by Heath123 · 9 comments

Not sure how hard this is with patches, but is it possible to make code blocks work something like I described here?
https://support.discord.com/hc/en-us/community/posts/360032435351/comments/360014868273

Not sure how hard this is with patches, but is it possible to make code blocks work something like I described here? https://support.discord.com/hc/en-us/community/posts/360032435351/comments/360014868273
Owner

I'm unable to view that URL

I'm unable to view that URL
Author

Screenshot of the mockup:

Screenshot of the mockup:
Author

@a Sorry, pasted the wrong link, I've fixed it now

@a Sorry, pasted the wrong link, I've fixed it now
Owner

Ah, you want syntax highlighting on code blocks. It was asked before. I don't think the text rendering bits are explored enough. I will keep the issue open, but I don't think we can come up with something for that until it's explored further I'm afraid.

Ah, you want syntax highlighting on code blocks. It was asked before. I don't think the text rendering bits are explored enough. I will keep the issue open, but I don't think we can come up with something for that until it's explored further I'm afraid.
Author

OK, well thank you anyway

OK, well thank you anyway

Isn't there syntax highlighting support in newer alpha/beta builds of Discord Android as of recent anyways? The only issue with it at the current moment is certain languages going unsupported.

Isn't there syntax highlighting support in newer alpha/beta builds of Discord Android as of recent anyways? The only issue with it at the current moment is certain languages going unsupported.
Contributor

Discord is adding language highlighting itself, i think this issue can be closed. For now discord android app has highlighting for Kotlin, Python, Rust, XML, ProtoBuff (https://github.com/discord/SimpleAST/pull/18)

Discord is adding language highlighting itself, i think this issue can be closed. For now discord android app has highlighting for `Kotlin, Python, Rust, XML, ProtoBuff` (https://github.com/discord/SimpleAST/pull/18)
Author

Didn't know that, sorry. The other features in the mockup like scrolling would be nice, but maybe not practical? Do you think I should close this now or leave it open for those?

Didn't know that, sorry. The other features in the mockup like scrolling would be nice, but maybe not practical? Do you think I should close this now or leave it open for those?

It should be as the carxstreetapk has. It looks good.

It should be as the [carxstreetapk](https://carxstreetapk.com) has. It looks good.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
5 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: distok/cutthecord#85
No description provided.