Errors highlighted in language injections

Answered

I'm writing markdown text with fenced blocks, like this:

```scala

some Scala code here...

```

The editor insists on syntax highlighting the code (which is fine) but also on reporting all sorts of errors.  These are code snippets used for illustration.  They don't make sense on their own, so of course all sorts of things are undefined or even use incorrect syntax.

How do I turn all inspections off for such code snippets?

Thanks,

MC

 

2 comments
Comment actions Permalink

Hi Michel,

I have filed an issue in the tracker: https://youtrack.jetbrains.com/issue/RUBY-18425, this is indeed a serious usability problem.

Please leave comments there is you have the vision or any suggestions concerning the possible solution.

Thanks for the feedback!

0

Please sign in to leave a comment.