Skip to main content

Code blocks with syntax highlighting in posts, comments and chat

We would like to use the community for our programming students and enable them to get help with their coding problems. To make this easy. or our use case, it would be great to have the option to add formatted code to posts and comments, courses etc.

Syntax highlighting for multiple programming languages.

3 comments

Log in to comment and vote

Comments3

  • Wolfgang Kirsch

    •

    Nov 5

    •

    Merged request

    •

    4 votes

    Using programming code examples in Chat/Message channels

    That we can include code examples in your HTML by using the tag. This automatically uses a monospaced font and also semantically labels our code as what it is.

    Look at sample at the following website:

    http://web.simmons.edu/~grabiner/comm244/weekfour/code-test.html

    • Wolfgang Kirsch

      •

      Apr 25, 2023

      That will be great for software developer communities.

  • SHAPESQUARE

    •

    Nov 5

    •

    Merged request

    •

    5 votes

    Code formatting

    Heartbeat allows to add formatted code in different programming languages in documents and courses using its text editor. I'd like to be able to use the same code formatting option in channels.