Jumat, 29 Januari 2016

Highlight a syntax or code on blogger with syntaxhighlighter

Hi guys,
if you're developer and want to share your code on your blog with some highlight on it, you can use syntaxhighlighter. To use the syntaxhighlighter, follow these step below:
1. Backup your current template : go to template menu → backup/restore → download full template
2. import the plugin : go to edit html, search then paste these code above it:
 
 

done. with those plugin, you can highlighting code: css, javascript, php, and xml. if you want to highlight another code see:
cdnjs SyntaxHighlighter
3. post your code between:
########### your code ###########
example your code:
	var name="john";
	function sayHello(){
		alert("Hello ,"+name);
	}
display:
	var name="john";
	function sayHello(){
		alert("Hello ,"+name);
	}