here
2. taruh kode berikut pada template blog anda : diantar kode < head > .......</ head >
< head > < script src="http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shCore.js" type="text/javascript"> < script src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shAutoloader.js' type='text/javascript'/> < script src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushXml.js' type='text/javascript'/> < script src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushJScript.js' type='text/javascript'/> < script src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushCss.js' type='text/javascript'/> < script src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushJava.js' type='text/javascript'/> <script type="text/javascript"> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.config.stripBrs=false; SyntaxHighlighter.all(); </script> </ head >3. tinggal arah kan ke kode scrpting anda <pre class="brush: java" > </pre>
contohnya
<pre class="brush: java" >
package entity; import java.io.Serializable; public class Client implements Serializable{ private int clientId; private String clientName; private String clientAddress; private String clientCity; public Client() { super(); // TODO Auto-generated constructor stub } public int getClientId() { return clientId; } public void setClientId(int clientId) { this.clientId = clientId; } public String getClientName() { return clientName; } public void setClientName(String clientName) { this.clientName = clientName; } public String getClientAddress() { return clientAddress; } public void setClientAddress(String clientAddress) { this.clientAddress = clientAddress; } public String getClientCity() { return clientCity; } public void setClientCity(String clientCity) { this.clientCity = clientCity; } }</pre>
4. lebih detail masalah configuration please click here
No comments:
Post a Comment