Rails gem for adding text/images to site which retain the language syntax -


i want make blogging site. basically, blogs contain posts of code snippets , other coding related stuffs.

so side admin can add posts blog. writing code snippets, want add text-editor rails app post code syntax,highlight it , not plain text.

something this:

enter image description here

or

enter image description here

it should support major languages c,c++,ruby, rails,python.

suggest method/gem.

ace editor syntax highlighting , editor. pretty good. github uses gists , things.

for syntax highlighting, have many options such pygments.rb, coderay, , rainbow list few..


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

python - Received unregistered task using Celery with Django -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -