如何更改括号中PHP标签的颜色 [英] How to change the color of PHP tags in Brackets

查看:68
本文介绍了如何更改括号中PHP标签的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为自定义括号创建主题( http://brackets.io/),我想知道如果有一种方法,我可以专门更改php标签的颜色.以下星号之间的部分将为红色:

I am working on a custom theme for Brackets (http://brackets.io/) and I am wondering if there is a way that I can specifically change the color of php tags. The parts between asterisks below would be red:

*<?php* echo 'test'; *?>*

我一直在查看几个.less文件主题,但看不到如何实现.我想念什么?

I have been looking at several themes .less files and I do not see how this has been accomplished. What am I missing?

谢谢.

这不能显示在网站上.我正在为Brackets开发一个主题,它是一个代码编辑器.我希望php比在编辑器中显示php的标准方式更有效.Brackets使用LESS来设置编辑器的样式.

This is not for display on a website. I am developing a theme for Brackets which is a code editor. I want php to stand out more effectively than the standard way that php is displayed in the editor. Brackets uses LESS for styling parts of the editor.

以下是有关Brackets主题开发的更多信息: https://github.com/adobe/brackets/wiki/Creating-Themes

Here is more information about Brackets theme development: https://github.com/adobe/brackets/wiki/Creating-Themes

推荐答案

要在Brackets主题中更改php标签的类是 .cm-meta ,这也将更改html doctype,css供应商前缀,甚至另一个标签或属性.

The class to change php tag in Brackets themes is .cm-meta, this also change html doctype, css vendor prefixes and maybe another tag or property.

这篇关于如何更改括号中PHP标签的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆