- 追加された行はこの色です。
- 削除された行はこの色です。
* Google Code Prettifyの表示テスト [#ve21b101]
#setlinebreak(on);
** Google Code Prettify [#n3df681a]
Javaソース
#html(){{
<pre class="prettyprint linenums">
public class TestClass {
public static void main(){
System.out.println("Hello World!");
}
}
</pre>
}}
CSSソース
#html(){{
<pre class="prettyprint linenums lang-css">
.test {
display: inline-block;
}
</pre>
}}
HTMLソース
#html(){{
<pre class="prettyprint linenums lang-html">
<table>
<tr>
<td>列1</td>
<td>列2</td>
<td>列3</td>
</tr>
</table>
</pre>
}}
** オリジナルプラグイン( jquery.mycode.1.0.6.js ) [#n3df8c4d]
Javaソース
#mycode2(){{
public class TestClass {
public static void main(){
System.out.println("Hello World!");
}
}
}}
CSSソース
#mycode2(){{
.test {
display: inline-block;
}
}}
HTMLソース
#myhtml2(){{
<table>
<tr>
<td>列1</td>
<td>列2</td>
<td>列3</td>
</tr>
</table>
}}
#code(myhtml2 linenums escapehtml){{
<table class="test">
<tr>
<td>列1</td>
<td>列2</td>
<td>列3</td>
</tr>
</table>
}}
#code(mycode2 linenums){{
public class TestClass {
public static void main(){
System.out.println("Hello World!");
}
}
}}
#code(mycode2){{
public class TestClass {
public static void main(){
System.out.println("Hello World!");
}
}
}}