Syntax highlighting for Java 8 Stream api?

Answered

I would love to get syntax highlighting for stream functions. Like the reserved keyword or another color
Specially forEach.

Is this possible?

7 comments
Comment actions Permalink

Should work fine in the current IDEA version with Java 8 set as project target with 8 language level.

0
Comment actions Permalink

 

I have set java 8 in project structure, still doesnt show



0
Comment actions Permalink

As you can see in the background stream operations aren't highlighted. So harder to read

0
Comment actions Permalink

These are just method calls, you can define custom style for them:

0
Comment actions Permalink

But doesn't that apply for all methods? 
I would like it only for stream api

0
Comment actions Permalink

Yes, for all. Why would some method calls highlight differently? Why only for stream API?

0
Comment actions Permalink

Because there are some people that prefer the old for loops because its easier to read since the for word is a keyword and highlighted.

I think if also the stream api was highlighted, it would become easier to read for these people complaining. 

Anyways, I guess it doesn't work as I want.

 

Thank you for your time

0

Please sign in to leave a comment.