Step 1 - Find a good CSS library for code formatting
The best HTML syntax highlighter library I found was PrismJs. It's free, incredibly thorough the languages it supports, and it provides a professional look. You simply choose the language support you like and download the CSS and Javascript files.
Here is a before look:
let items = [1; 3; 4]
items |> List.map(fun x -> x + 1)
Here is the code after formatting with PrismJs:let items = [1; 3; 4]
items |> List.map(fun x -> x + 1)
Step 2 - Move from Wordpress to Google Blogger
I originally had the blog on Wordpress using a free template but I decided to move it to Google Blogger. The reason for moving was Google Blogger provided free template editing. Wordpress has other advantages but for my purpose I simply needed to tweak the template to include the Prism CSS and Javascript files. Since I only had a few posts this was not a difficult move.
Step 3 - Host PrismJs CSS and Javascript files in DropBox
I used the instructions in this article to host the files in DropBox so they can be referenced publicly.
Step 4 - Update template HTML to include CSS and Javascript files
In Google Blogger I went to Template -> Edit HTML and added this piece in the header.
<link href='https://dl.dropboxusercontent.com/s/wvc7y6gckrru3ex/prism.css' rel='stylesheet'/>
<script src='https://dl.dropboxusercontent.com/s/sy0k7bc7ixl6xan/prism.js' type='text/javascript'/>
It was that easy! Now my blogging code looks much nicer.
Their open communication, organized project management, and rapid scaling contributed to a productive partnership.
ReplyDeletebest web design firms
They provide useful suggestions and high quality solutions.
ReplyDeletelogo development
Exceptional service app agencies
ReplyDeleteHe became truly efficient and friendly.
They are timely and treated the entire procedure very professionally.
ReplyDeletetop UI designers
They offer great attention to detail, making sure that they’re creating the best possible product
ReplyDeletebranding agency
This text may be value everyone’s attention. How will I learn more?
ReplyDeleteexperience design firm
I certainly appreciate your stuff provided in the blogs.
ReplyDeletelogo design services company
Fine method of telling, and enjoyable article to acquire factual statements.
ReplyDeletetop web design firms
During the training, they are taken through counter-surveillance, first aid, venue security, incident management, route selection, and risk and threat assessment.security services in London Our company is owned by ex-special forces and we employ ex special forces and ex military bodyguards for hire. There are many ways our services can help you.
ReplyDeleteHi Dear, have you been certainly visiting this site daily, if that's the case you then will certainly get good knowledge.
ReplyDeletedesign agency SF
Your articles and contents are encouraging.
ReplyDeleteBay Area web design firms
I even have been getting a lot of helpful and informative material in your web site.
ReplyDeletebest UX companies
ReplyDeleteGreat post! Even if code is written in the document of the blog post, it is always suitable to format it properly in order to enhance the understanding of the problem by the reader. It is particularly useful when providing online class help as clean code can instruct the students as to how to accomplish a particularly thorny programming problem.