Relative Content

Tag Archive for ruby-on-railsrubyrubygemssyntax-highlighting

How can I syntax highlight in rich text in rails

I am creating my first non hand held rails app. one of the features involves writing code inside of a rich text area. To highlight this code(syntax) I defaulted to making use of rouge. When I used it with just a basic form.text_field it worked well then I thought of making use of rich text (is this a good decision too?). When I made this change I updated my code_syntax highlighter in the following manner: