【发布时间】:2013-05-20 05:58:59
【问题描述】:
因此,对于我的网站,我需要一种方法将 php 文件突出显示为 css,并在 php 文件中启用作为 css 的代码提示。我使用<link href="css.php" rel="stylesheet" type="text/css" /> 将php 文件包含为css 文件,它可以工作并将php 文件显示为css。但是,问题是在 Adobe Dreamweaver 中,当我编辑 style.php 的代码时,它都显示为黑色字体,并且 css 的代码提示不起作用。
此文件包含许多 php 变量,用于根据用户设置和父页面制作的其他 php 变量以不同方式显示内容。
压缩样式.php
/*
Style Sheets
....
Copyright © 2012 All Rights Reserved
*/
@charset "utf-8";
#myID {
background:<?php echo $colorVar; ?>;
}
如何让dreamweaver 将此php 文件识别为css 文件?
【问题讨论】:
标签: php css syntax-highlighting dreamweaver code-hinting