Monday, May 18, 2020

code template in blogger

When you copy the code to the blogger it gets truncated due to HTML.



The simple solution is to write your code github by clicking the link. ( you may need to create an account if you don't have one, this may change in future)


1. https://gist.github.com/




2. Write the file name ( extension is important  ex. test.cpp)
3. Copy your code as shown

4.  push the "Create public gist"



5. now copy the Embed link and paste in your blog.

6. publish the post and it looks something like bellow.







No comments: