Syntax highlight for path function on django not working

Answered

I am using Django and the function path to create URLs, and realized that the first param, the string with the path, is not being highlighted as a string, it happens with double quote, or single quote. It only happens with this function.

Also, if I apply some function to the string, the string shows normal, with the green color.

I already apply some themes, so that's not the problem. Is this the default behavior or I have a problem. If so, how a fix it, or how I configure the IDE to show it normally.

1 comment
Comment actions Permalink

Hi, PyCharm uses a special language injection in the first path argument to provide the relevant highlighting for Django URL path. It is done by design and that's why it is not highlighted as a usual string.

0

Please sign in to leave a comment.