那里有任何php / css解析器吗? [英] any php/css parsers out there?

查看:50
本文介绍了那里有任何php / css解析器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那里有没有php / css解析器?

我查看了Zend Framework和Pear两者,但没找到。

所有的东西在Google上出现(用于css编辑)的是应用程序。


如果你能把css文件读成数据那将会非常方便

结构,然后构建表单来更新它,并在保存时重新写入文件

(隐藏在密码屏障后面)。

解决方案

osnot写道:


那里有没有php / css解析器?



是的,我们都可以阅读PHP代码,我们大多数人也擅长阅读CSS。


这是什么你真的想要吗?


Dikkie Dik写道:


osnot写道:


>那里有没有php / css解析器?




是的,我们都可以阅读PHP代码,我们大多数人也擅长阅读CSS。


你真正想要的是什么?



我以为我在原帖中说过:如果你可以将一个

css文件转换成数据结构,那么你可以操纵用

表格,然后再把它写回来。生成数据结构的解析器可能是web-app css编辑器的基础。


我写了一个有效的解析器。但是它依赖于css是一种特殊格式的

格式(单独一行的花括号等)。

我想我可以将文件啜饮成字符串然后使用

正则表达式强制我需要的格式。


数据结构实用程序的css文件(在我看来)是一个

方便的东西。


osnot写道:


Dikkie Dik写道:
< blockquote class =post_quotes>
> osnot写道:


>>那里有没有php / css解析器?



是的,我们都可以阅读PHP代码,我们大多数人也擅长阅读CSS。

它是什么你真的想要吗?



我以为我在原帖中说过:如果你可以将

css文件转换成数据结构,那么你可以操纵用

表格,然后再把它写回来。生成数据结构的解析器可能是web-app css编辑器的基础。


我写了一个有效的解析器。但是它依赖于css是一种特殊格式的

格式(单独一行的花括号等)。

我想我可以将文件啜饮成字符串然后使用

正则表达式强制我需要的格式。


数据结构实用程序的css文件(在我看来)是一个

方便的东西。



是的,我同意 - 这将是一个方便的事情。不幸的是,我

不知道那里有什么。


-

======= ===========

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


Are there any php/css parsers out there?
I looked in the Zend Framework and Pear both, and didn''t find one.
All the stuff that comes up on Google (for css editing) are applications.

It would be more than handy if you could read a css file into a data
structure, and then build forms to update it, and the re-write the file
on save (hidden behind a password barrier).

解决方案

osnot wrote:

Are there any php/css parsers out there?


Yes, we can all read PHP code and most of us are also good at reading CSS.

What is it you really want?


Dikkie Dik wrote:

osnot wrote:

>Are there any php/css parsers out there?



Yes, we can all read PHP code and most of us are also good at reading CSS.

What is it you really want?

I thought I said it in the original post: if you could transform a
css file into a data structure, then you could manipulate it with
forms, and then write it back out again. A parser that produced
a data structure could be the basis of a web-app css editor.

I wrote one that works. But it relies on the css being in a
particular format (curly brackets on a separate line, etc).
I suppose I could slurp the file into a string and then use
regular expressions to force the format I need.

A css file to data structure utility would (it seems to me) be a
handy thing.


osnot wrote:

Dikkie Dik wrote:

>osnot wrote:

>>Are there any php/css parsers out there?



Yes, we can all read PHP code and most of us are also good at reading
CSS.

What is it you really want?


I thought I said it in the original post: if you could transform a
css file into a data structure, then you could manipulate it with
forms, and then write it back out again. A parser that produced
a data structure could be the basis of a web-app css editor.

I wrote one that works. But it relies on the css being in a
particular format (curly brackets on a separate line, etc).
I suppose I could slurp the file into a string and then use
regular expressions to force the format I need.

A css file to data structure utility would (it seems to me) be a
handy thing.

Yes, I agree - this would be a handy thing to have. Unfortunately, I
don''t know of any out there.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


这篇关于那里有任何php / css解析器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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