I have followed the simple instructions in part A) of this answer.
The code can be seen in the browser, but it's not formatted as it's supposed to be.
When I view source, I can see that css classes are being generated, but it doesn't seem to change the appearance.
This is the html generated (I added the div's)
<div class="highlight">
<span class="k">def</span> <span class="nf">rouge_me</span>
<span class="nb">puts</span> <span class="s1">'hey!'</span>
<span class="k">end</span><br><br>
</div>
What I've tried
- This suggested wrapping everything in
<div class="highlight"> ... </div>
but that didn't change anything. - Common sense says if there's css classes being referenced in the html, but those css classes aren't defined anywhere, then they won't be applied. When I check my css, there are no classes defined (it's an extremely basic app with no styling). How can the app 'know' about the classes rouge provided? Does rouge provide these somehow?
application.css
? It is simply enough to runRouge::Themes::Base16.mode(:light).render(scope: '.highlight')
in the rails console and copy/paste the output intoapplication.css
? Apologies for how basic my understanding is – Ego