streetturtle
streetturtle

Reputation: 5850

Intellij IDEA language injection in .feature file

I have a Cucumber scenario defined in .feature file in which I test an API I developed:

Given Something
When an API call is executed: GET '/v1/my/endpoint'
Then response status is OK
And response body is:
"""
{
  "id": "id-1",
  "message": "it worked"
}
"""

I would like to be able to have syntax highlighting for the JSON snippets. Didn't find anything in docs 1 2. Language injection comments also doesn't work:

# language=javascript
And response body is:
"""
{
  "id": "id-1",
  "message": "it worked"
}
"""

So the question is how to make language injection work in .feature file?

Upvotes: 0

Views: 163

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 401965

This feature is not supported at the moment, feel free to vote.

Upvotes: 1

Related Questions