adding languages to syntax highlighting list

88 views
Skip to first unread message

Khai Do

unread,
Jul 17, 2014, 9:04:54 AM7/17/14
to repo-d...@googlegroups.com
The Gerrit diff screen settings has an option to set the syntax highlighting to a particular language.  There's one for markdown but not for restructured text (rst).  Can someone tell me how I can add  restructured text to the list of languages?  

David Ostrovsky

unread,
Jul 17, 2014, 9:18:59 AM7/17/14
to repo-d...@googlegroups.com

Am Donnerstag, 17. Juli 2014 15:04:54 UTC+2 schrieb Khai Do:
The Gerrit diff screen settings has an option to set the syntax highlighting to a particular language.  There's one for markdown but not for restructured text (rst).  Can someone tell me how I can add  restructured text to the list of languages?  


First thing to check is that the missing mode is supported by CM3.
This seems to be the case [1]. Just add the missing mode to Gerrit.
Recently 18 new modes were added in this change [2].

David Ostrovsky

unread,
Jul 17, 2014, 9:26:26 AM7/17/14
to repo-d...@googlegroups.com

Am Donnerstag, 17. Juli 2014 15:18:59 UTC+2 schrieb David Ostrovsky:

Am Donnerstag, 17. Juli 2014 15:04:54 UTC+2 schrieb Khai Do:
The Gerrit diff screen settings has an option to set the syntax highlighting to a particular language.  There's one for markdown but not for restructured text (rst).  Can someone tell me how I can add  restructured text to the list of languages?  


First thing to check is that the missing mode is supported by CM3.
This seems to be the case [1]. Just add the missing mode to Gerrit.
Recently 18 new modes were added in this change [2].

Missed to mention one step. We are shipping CM3 zip distribution on
Google storage bucket.  If the new mode is not included in current
distribution, you would need to ask someone from Google to update
CM3 distribution.

Khai Do

unread,
Jul 17, 2014, 9:42:07 AM7/17/14
to repo-d...@googlegroups.com
That's great, thanks!
Reply all
Reply to author
Forward
0 new messages