Skip to content

Javascript applet for prettyprint source code on blogger. It also allows to download source file

License

Notifications You must be signed in to change notification settings

DoHITB/Coder.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coder.js

Javascript applet for prettyprint source code on blogger. It also allows to download source file

How it works

Add it to your JS code on blogger (you can either download and cut/paste it, or just use "<script type="text/javascript" src="https://dohitb.github.io/Coder.js/Coder.js"></script>, also add the custom CSS (code.css), and it's ready to use.

<div>
[code lan=gral|cobol|net|sql]
(Your code here, be sure to add it on HTML edition mode)
[/code]
</div> <div id="b_ei_codegenerator"><script type="text/javascript">makeCode();</script></div>

  • To make text snippets, use ~ before any quote (~", or ~')
  • To remark a line, use [hilite] at the begining of the line

You can attach several [code] snippets, inside same div or on different div

Then, when your post is viewed, "makeCode()" will made it's magic and pretty-print your source code :D

About

Javascript applet for prettyprint source code on blogger. It also allows to download source file

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published