Mattermost, Inc.

Whether support code(C/C++,java,js...) syntax highlighting in future?

Aflter upload a code file, support open or preview the file and code(C/C++,java,js…) syntax highlightingy.
Or send some code snippet message, support code(C/C++,java,js…) syntax highlightingy.

Hi ttllyy,

To post code as part of a message, you can use markdown’s code block. If you specify a language after the inital ```, it’ll provide syntax highlighting it as well. For example,

``` javascript
function foo() {

will show up as

Also, we actually had a community member that implemented previews for uploaded code files for our next release in May so you’ll be able to use that soon.