Skip to content

Line Highlighting on multiple code blocks at the same time #431

Answered by manniL
TechWatching asked this question in Q&A
Discussion options

You must be logged in to vote

This works via {at:0} on both code blocks inserted after the line highlight commands. You can also use {at:X} if you don't want to start on "directly".

Example: (Remove the \ before the triple backticks each)

```js{all|1|2|all} {at:0}
const a = "Highlight me first!"
const b = "then me!"
\```

```js{all|1|2|all} {at:0}
const thisVarChanged = "Highlight me first!"
const eyo = "then me!"
\```

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@DavidAntliff
Comment options

@KermanX
Comment options

Answer selected by TechWatching
Comment options

You must be logged in to vote
1 reply
@KermanX
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants