DEV Community

Raphaël Pinson
Raphaël Pinson

Posted on

3

Error console highlighting

When composing posts on dev.to, is there a way to dispensary display error messages so they appear as console output, but in red?

I've tried things like:




```error
My error message
```



or

<pre>
<code style="color:red;font-weight:bold">
My error message
</code>
</pre>
Enter fullscreen mode Exit fullscreen mode

to no avail…

Is there a way to achieve this?

Top comments (1)

Collapse
 
raphink profile image
Raphaël Pinson

Good one!

Except some words come out green with CSS:

Failed to retrieve catalog for foo.example.com from puppetserver in environment catalog_diff: Failed to open TCP connection to puppetserver:8140 (No route to host - connect(2) for "puppetserver" port 8140)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay