Client: Feature request: syntax highlight in Markdown

Created on 5 Oct 2017  路  9Comments  路  Source: keybase/client

Allow adding a language to code blocks, same way Github does it

how it is now

```c++
int main(){}
```

simply becomes:

int main(){}

how it should be

```c++
int main(){}
````

should render to

int main(){}

Discord does this too and it's really nice.

Most helpful comment

code blocks would be really nice to have.

All 9 comments

prism could make this fairly painless.

code blocks would be really nice to have.

Code blocks with syntax highlighting would be great!

Would be great to have this.

This would be a KILLER feature over Slack, which does not support it after all these years 馃檮

This would be great to have!

Agreed, this is probably one of the only things I miss from Discord (although I wont miss that rubbish snippet size limit discord impose).

Has this moved forward at all or been considered by the team? Slack offers full support for this now, and this is the main thing that I miss from that and Discord.

Would love to see this in Keybase.

Hi I have started work on this, please view my progress here: https://github.com/opr/client/commit/e8db611521cccb65e14161016e96c98f60a61f15

as mentioned in the commit, I need help with how to add the styles from highlight.js. At the moment I just added it to react.tsx but this is not the right place (I didn't even know where to begin to look at adding third party stylesheets). If you show me how to add this properly I will do it!

Also I need to know if this approach is going to work on the React Native app? (since it uses divs, will this work?) comments would be very much appreciated.
keybase

Was this page helpful?
0 / 5 - 0 ratings