skin style(소문자로 적어야 제대로 적용된다)
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autoload=true&skin=sons-of-obsidian&lang=html" defer="defer"></script>
language list
사용법
before
after
<pre class="prettyprint lang-java linenums">
package test;
public class Test {
public static main(String...args) {
System.out.println("Hello world");
}
}
</pre>
package test;
public class Test {
public static main(String...args) {
System.out.println("Hello world");
}
}
before
after
<?prettify lang=java linenums=40?> <!-- linenumber를 40부터 시작 -->
<pre class="prettyprint">
package test;
public class Test {
public static main(String...args) {
System.out.println("Hello world");
}
}
</pre>
더 자세한 설명은 아래 링크에서 확인
package test;
public class Test {
public static main(String...args) {
System.out.println("Hello world");
}
}
https://code.google.com/p/google-code-prettify/
Github으로 이사 갔음.
https://github.com/google/code-prettify
댓글 없음:
댓글 쓰기