We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to be able to write an error message inside my code block and make it look like it's an error.
Currently, it blends with the code:
I'm not sure if there's a known syntax for it, but I would like the option to "highlight" a row as an error row:
```typescript{2:error} client.query(sql` SELECT idd FROM comments ~~~ <<<< Invalid Query: column "idd" does not exist `); ```.
Haven't found any
No response
The text was updated successfully, but these errors were encountered:
As a workaround, add these styles:
.error { --vp-code-line-highlight-color: var(--vp-c-red-dimm-2); }
And in markdown, do something like this:
<div class="error"> ```ts{3} client.query(sql` SELECT idd FROM comments ~~~ <<<< Invalid Query: column "idd" does not exist `); ``` </div>
This won't work if you want normal as well as error highlighting in same code block.
Output:
Sorry, something went wrong.
That's amazing! thanks!
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
I want to be able to write an error message inside my code block and make it look like it's an error.
Currently, it blends with the code:
Describe the solution you'd like
I'm not sure if there's a known syntax for it, but I would like the option to "highlight" a row as an error row:
Describe alternatives you've considered
Haven't found any
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: