开发者

PSPad formatting gets lost with type="text/javascript"

开发者 https://www.devze.com 2023-02-13 19:29 出处:网络
Whenever I code the following inside an HTML document within PSPad (a free code editor): <script src=\"test.js\" type=\"text/javascript\"></script>

Whenever I code the following inside an HTML document within PSPad (a free code editor):

<script src="test.js" type="text/javascript"></script>

the <script> tag becomes gray.

When I remove or split up the word script inside text/javascript, everything is fine. Is this a bug, or how can I still have formatting colors in a <script> tag with this type attribute?

Hopefully this image clearifi开发者_运维百科es what I mean:

PSPad formatting gets lost with type="text/javascript"


Currently, I do not have this issue anymore. I don't know how comes, but restarting PSPad was a workaround apparently. Also, I can't reproduce it at the moment anymore, so I'll forget about it.


This is not a bug, it is the Javascript tag's highlighter background.

In the Settings menu you have the Highlighters Settings where you can change all highlighters.

Different languages in a document can have their own highlighter colors and the highlighter can be individually set on/off or customised for all languages.

0

精彩评论

暂无评论...
验证码 换一张
取 消