Currently, in my template, I'm doing this:
<% @examples.each_with_index do |example, index| %>
<pre class="example code">
<%= html_syntax_highlight(example.text, :plain) %>
</pre>
<% end %>
this line: <%= html_syntax_highlight(example.text, :plain) %>
doesn't appear to be working they way I want it to.
In my documentation, I have this:
# @example_response
# ```
# {
# "proposal" => {
# "name" => "proposal name",
# "proposal_sections" => [
# "proposal_contents" => [ ... ]
# ]
# "proposal_attachments" => [ ... ]
# }
# }
# ```
but it renders like this:
<pre class="example code"> ```
{
"proposal" => {
"name" => "proposal name",
"proposal_sections" => [
"proposal_contents" => [ ... ]
]
"proposal_attachments" => [ ... ]
}
}
```
</pre>
shouldn't the strings be a different color or something? or the symbols? (like =>)?
and why do the backticks stay?
in my script that generates the documentation:
--tag example_response:"Example Response"