Code Highlight for blog in Javascript + GoogleDrive as CDN
UPDATE:
Foud a bit better BloggerScripts with jQuery:
[code]test test test Blogger Shortcode Plugin[/code]
[quote]" Yeah, I am really enjoying the normal use of shortcodes :) "[/quote]
Paste following code just before end of head section:
And the following before the body tag
::below is from komku.org::
Step 1 & 2:
Upload and Select file > Click Open
Step 3:
Select the checkbox to select the file > Click the Share button
Step 4:
Click Change...
Step 5:
Change the sharing settings from "Private" to "Public on the web" > Click Save
Step 6:
Copy the link > paste in Notepad
Example:
https://docs.google.com/file/d/0B47Pdqj--olfVVg3MFgxVlpqd0k/edit?usp=sharing
File ID: 0B47Pdqj--olfVVg3MFgxVlpqd0k
Paste the file id after: https://googledrive.com/host/
Direct link to the file:
https://googledrive.com/host/0B47Pdqj--olfcUNkV3o3SjdoVGM
Foud a bit better BloggerScripts with jQuery:
[code]test test test Blogger Shortcode Plugin[/code]
[quote]" Yeah, I am really enjoying the normal use of shortcodes :) "[/quote]
Paste following code just before end of head section:
1: <link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
2: <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
3:
4: <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'/>
5: <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shAutoloader.js' type='text/javascript'/>
6: <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js' type='text/javascript'/>
7: <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/>
8: <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js' type='text/javascript'/>
And the following before the body tag
1: <script language='javascript'>
2: SyntaxHighlighter.config.bloggerMode = true;
3: SyntaxHighlighter.all();
4: </script>
</ br>
</ br>
Also use the CodeFormatter to escape html characters:
https://codeformatter.blogspot.cz/::below is from komku.org::
Step 1 & 2:
Upload and Select file > Click Open
Step 3:
Select the checkbox to select the file > Click the Share button
Step 4:
Click Change...
Step 5:
Change the sharing settings from "Private" to "Public on the web" > Click Save
Step 6:
Copy the link > paste in Notepad
Example:
https://docs.google.com/file/d/0B47Pdqj--olfVVg3MFgxVlpqd0k/edit?usp=sharing
File ID: 0B47Pdqj--olfVVg3MFgxVlpqd0k
Paste the file id after: https://googledrive.com/host/
Direct link to the file:
https://googledrive.com/host/0B47Pdqj--olfcUNkV3o3SjdoVGM
No comments:
Post a Comment
Thank you for your comment. Will try to react as soon as possible.
Regards,
Networ King