I'm thinking of making a switch to Blogger from WordPress. Yes! WordPress is better with all the good stuff but I think I don't want all that. I just want to write stuff. If I make this switch, I'll explain it in a blog post but for now let's come back to the topic.
The first challenge in switching to Blogger is that there are no plugins like Syntax Highlighter. I mean we can surely install them and run them here but it's a LOT easier with WordPress. Using Syntax Highlighter on Blogger is way too much work and it does affect the load time.
Then I tried to embed code from JSFiddle and CodePen. But that makes the page heavy and adds few more seconds to the page load. So I decided to search for something else. I literally searched for "Ways to embed source code" in Google.
I found a post which lists down 18 best ways to share your code. That's nice! I already knew PasteBin but the free version of the site is full of Ads. So I wanted to try something else. Then I discovered Gist by Github. And boy, it's super nice!
Here's an example embed from Gist -
Isn't it awesome? All you need to do is paste the embed code you get in your post editor (using the HTML view tab). The only problem is that it won't show up in the Compose view tab. So you'll have to check the preview and add a line break to continue writing.
Other than that, it's great and lightweight. Perfect for me.
The first challenge in switching to Blogger is that there are no plugins like Syntax Highlighter. I mean we can surely install them and run them here but it's a LOT easier with WordPress. Using Syntax Highlighter on Blogger is way too much work and it does affect the load time.
Then I tried to embed code from JSFiddle and CodePen. But that makes the page heavy and adds few more seconds to the page load. So I decided to search for something else. I literally searched for "Ways to embed source code" in Google.
I found a post which lists down 18 best ways to share your code. That's nice! I already knew PasteBin but the free version of the site is full of Ads. So I wanted to try something else. Then I discovered Gist by Github. And boy, it's super nice!
Here's an example embed from Gist -
Isn't it awesome? All you need to do is paste the embed code you get in your post editor (using the HTML view tab). The only problem is that it won't show up in the Compose view tab. So you'll have to check the preview and add a line break to continue writing.
Other than that, it's great and lightweight. Perfect for me.
No comments:
Post a Comment