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

Complicated Custom Apple Watch Complications, enabled by WebHooks
Categories:  Projects, iOS, Complicated
Posted: March 09, 2019
Complicated API Documentation API Documentation
Categories:  Projects, iOS, Complicated-Tutorial
Posted: March 08, 2019
Update your Apple Watch from IFTTT Use IFTTT and Complicated to update your Apple Watch
Categories:  Projects, iOS, Complicated-Tutorial
Posted: March 07, 2019
Making Mini Dor Sensors Using silicone moulding to make party favors for my product launch party
Categories:  Projects
Posted: January 26, 2019
How to make custom Apple Watch complications with Complicated Simple Apple Watch Complications via Webhooks
Categories:  Projects, iOS, Complicated-Tutorial
Posted: January 13, 2019