我有以下HTML:
<h3 id="concat">Concat</h3>
<p><a name="abcde"></a></p>
<pre lang="java" class="prettyprint">
class NeoEach {
static {@code <T, V, E> void Each(int limit, Iterable<T> i, Asyncc.IEacher<T, E> m, Asyncc.IEachCallback<E> f)} {
final CounterLimit c = new CounterLimit(limit);
final ShortCircuit s = new ShortCircuit();
final var iterator = i.iterator();
RunEach(iterator, c, s, m, f);
handleSameTickCall(s);
}
}
</pre>
<h3 id="series">Series</h3>
<p><a name="abcde"></a></p>
<pre lang="java" class="prettyprint">
class NeoEach {
static {@code <T, V, E>} void Each(int limit, Iterable<T> i, Asyncc.IEacher<T, E> m, Asyncc.IEachCallback<E> f) {
final CounterLimit c = new CounterLimit(limit);
final ShortCircuit s = new ShortCircuit();
final var iterator = i.iterator();
RunEach(iterator, c, s, m, f);
handleSameTickCall(s);
}
}
</pre>
<h3 id="parallel">Parallel</h3>
<p><a name="abcde"></a></p>
<pre lang="java" class="prettyprint">
class NeoEach {
static <T, V, E> void Each(int limit, Iterable<T> i, Asyncc.IEacher<T, E> m, Asyncc.IEachCallback<E> f) {
final CounterLimit c = new CounterLimit(limit);
final ShortCircuit s = new ShortCircuit();
final var iterator = i.iterator();
RunEach(iterator, c, s, m, f);
handleSameTickCall(s);
}
}
</pre>
它显示如下:
你可以看到我试图使用{@code}来逃避<>字符,但是它不起作用。
有谁知道为什么它不能逃脱角色并正确格式化?
你可以使用<
作为'>
'。
<h3 id="concat">Concat</h3>
<p><a name="abcde"></a></p>
<pre lang="java" class="prettyprint">
class NeoEach {
static {<T, V, E> void Each(int limit, Iterable<T> i, Asyncc.IEacher<T, E> m, Asyncc.IEachCallback<E> f)} {
final CounterLimit c = new CounterLimit(limit);
final ShortCircuit s = new ShortCircuit();
final var iterator = i.iterator();
RunEach(iterator, c, s, m, f);
handleSameTickCall(s);
}
}
</pre>
<h3 id="series">Series</h3>
<p><a name="abcde"></a></p>
<pre lang="java" class="prettyprint">
class NeoEach {
static {<T, V, E>} void Each(int limit, Iterable<T> i, Asyncc.IEacher<T, E> m, Asyncc.IEachCallback<E> f) {
final CounterLimit c = new CounterLimit(limit);
final ShortCircuit s = new ShortCircuit();
final var iterator = i.iterator();
RunEach(iterator, c, s, m, f);
handleSameTickCall(s);
}
}
</pre>
<h3 id="parallel">Parallel</h3>
<p><a name="abcde"></a></p>
<pre lang="java" class="prettyprint">
class NeoEach {
static <T, V, E> void Each(int limit, Iterable<T> i, Asyncc.IEacher<T, E> m, Asyncc.IEachCallback<E> f) {
final CounterLimit c = new CounterLimit(limit);
final ShortCircuit s = new ShortCircuit();
final var iterator = i.iterator();
RunEach(iterator, c, s, m, f);
handleSameTickCall(s);
}
}
</pre>