简体   繁体   English

在Sublime Text 2中一次突出显示多个语法?

[英]Highlight Multiple Syntax at Once in Sublime Text 2?

I have a CSS file that is about half CSS and half PHP. 我有一个CSS文件,大约一半CSS和一半PHP。 Is there a way to apply syntax highlighting to both at once? 有没有一种方法可以同时对两者都应用语法突出显示?

The simple answer would be don't use extensive PHP in CSS. 一个简单的答案就是不要在CSS中使用大量的PHP。 Have your processing done in the file that includes the css file, or just use str_replace(); 在包含css文件的文件中进行处理,或者仅使用str_replace();即可。 for having PHP generated variables in your CSS. 在您的CSS中使用PHP生成变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM