Click anywhere to close

Html Code Blocks

In an attempt to make this site look prettier I have added HTML code blocks. The library that I am using to do this is called highlight_js-rails. It was easily added to my rails project by just adding gem 'highlight_js-rails' to my Gemfile. Here is an example of it in action:

#include 
int main() {
  printf("Hello World\n");
}


This is my application.css:
/*
*= require_self
 *= require highlight_js/monokai
*/


And my application.js:

//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require highlight_js/highlight
//= require highlight_js/languages/ruby
//= require highlight_js/languages/cpp
//= require highlight_js/languages/python
//= require highlight_js/languages/javascript


Recent Posts

ghosts but dear reader, how can you open instagram if your thumbs are ephemeral?
Personal
posted: March 30, 2025
what if? chapter 1 this is my first time publishing work with dialogue. Don't judge me too harshly my dear reader
Personal
posted: March 07, 2025
on refusing to become a pessimist what sound does a hedgehog make?
Personal
posted: March 06, 2025
definitions chapter 3: getting over something wow 3 posts in one day, my dear readers are eating today
Personal
posted: March 06, 2025
i'll have to think about that i guess, at least, trying again will give me something new to write about
Personal
posted: March 05, 2025