I am building a Rails 4 app, where I want users to be able to read/write/upload/download files with different kind of files with color highlighting depending on the programming language of the file. Currently I've found a few gems which allow you to read a file and display with color highlighting, just like sublime or any other rich text editor.
I haven't found any text-editor which allows you to choose a language, and based on that highlight the words depending on the language chosen.
I'm looking for something like the editor gistbox has, but haven't found anything yet.
Here's an example of what I'm trying to get.