-
-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Description
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>
Metadata
Metadata
Assignees
Labels
No labels