Way to indicate invalid code
See original GitHub issueI love using carbon when I need to include code samples in my slides. I’m often talking about incorrect code, though, and how to fix it- so I’d love a way to indicate that a line of code should be marked incorrect.
By adding a toggle that applied something similar to the following CSS, to a line of code, it could perhaps visually imitate other IDEs:
text-decoration: red wavy underline;
text-decoration-skip-ink: none;
Here’s an image:
Thank you for considering!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to show an input is invalid in this java code
The user enters a value 3-15. Input validation: only accept 3-15. Allow the user to repeat the program if desired. Input validation: Y...
Read more >invalid - CSS: Cascading Style Sheets - MDN Web Docs
The :invalid CSS pseudo-class represents any , , or other element whose contents fail to validate.
Read more >ARIA21: Using Aria-Invalid to Indicate An Error Field
This technique demonstrates how aria-invalid may be employed to specifically identify fields that have failed validation. Its use is most suitable when:.
Read more >I have a code but it keep saying "invalid expression. when ...
I have a code but it keep saying "invalid expression. when calling a function or indexing a variable, use parentheses. otherwise check for...
Read more >Invalid Syntax in Python: Common Reasons for SyntaxError
Watch it together with the written tutorial to deepen your understanding: Identify Invalid Python Syntax. Python is known for its simple syntax.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a fantastic idea! I was so excited about it tonight, I implemented the initial version (here https://github.com/carbon-app/carbon/pull/1015)
Once released, if you select some text, and click the “U” twice, the text will get underlined as errant, as shown here:
It’s not perfect (squiggles between
span
s sometimes render a gap), so we don’t have to mark this issue closed quite yet, but I wanted to unblock your use case at least a little bit 🙂Oh this is amazing, thank you so much!! 💯