So far Code Surfer uses diff to add steps that advance steps (e.g. change focus). However, it would be nice to show the highlighted diff itself.
The workaround seems to be
import 'prismjs/components/prism-diff';
Prism.languages.diff2 = Prism.languages.diff;
...
<CodeSurfer>
```diff2
val helloWorld = "Hello world"
val world = "world"
@Benchmark
fun junit4() {
- Assert.assertTrue(
- "$helloWorld should contain $world",
- helloWorld.contains(world)
- )
+ Assertions.assertTrue(helloWorld.contains(world)) {
+ "$helloWorld should contain $world"
+ }
}
```
</CodeSurfer>
So far Code Surfer uses
diffto add steps that advance steps (e.g. change focus). However, it would be nice to show the highlighteddiffitself.The workaround seems to be
...