If we have this block:
```java
System.out.println("foo");
```
how can replicate the above with <pre>
tags?
<pre lang="java">
System.out.println("foo");
</pre>
is there a class or attribute we can add to the pre tag to tell github markdown to know which language is in there?
答案 0 :(得分:2)
尝试一下
<pre>
<code class="language-java">
System.out.println("foo");
</code>
</pre>