WYSIWYG网页编辑器用于php web开发

时间:2021-08-29 06:56:29

I'm making a small php website. I find it useful to prototype or layout the pages in a WYSIWYG web page editor.

我正在制作一个小型的php网站。我发现在WYSIWYG网页编辑器中对页面进行原型设计或布局很有用。

I'd like to get suggestions on WYSIWIG web page editors that work well in a php development pipeline. Please share your favorites and describe why you like them.

我想得到关于在PHP开发管道中运行良好的WYSIWIG网页编辑器的建议。请分享您的最爱并描述您喜欢它们的原因。

10 个解决方案

#1


3  

The only one I've used is Dreamweaver, can't say I liked it that much as the preview it displays wasn't how it actually looked in a browser.

我唯一使用的是Dreamweaver,不能说我喜欢它,因为它显示的预览并不是它在浏览器中实际显示的样子。

Nvu is supposed to be quite good though.

Nvu应该是相当不错的。

I prefer just editing in an IDE then viewing in a real browser.

我更喜欢在IDE中编辑,然后在真实的浏览器中查看。

#2


2  

Unfortunately, the best one I've used as far as WYSIWYG is Dreamweaver, and I don't like it that much either, but it is a standard part of the toolset in many web shops, and you just get used to it.

不幸的是,就WYSIWYG而言,我所使用的最好的是Dreamweaver,我也不喜欢它,但它是许多网店中工具集的标准部分,你只是习惯了它。

I currently use Aptana for that sort of prototyping, which is not really WYSIWYG, but has a great preview function, and I don't end up having to go back through crappy WYSIWYG generated markup and cleaning it up later.

我目前使用Aptana进行那种原型设计,它并不是真正的WYSIWYG,但具有很好的预览功能,而且我最终还是不得不通过糟糕的WYSIWYG生成的标记返回并稍后进行清理。

I have never used the php part of Aptana (don't do much php), but have friends who seem to like it. The JS stuff is brilliant, and the CSS editor pretty good too.

我从来没有使用过Aptana的php部分(不要做太多的PHP),但有朋友似乎喜欢它。 JS的东西很精彩,CSS编辑器也很棒。

#3


2  

Like many web developers, I long ago stopped using WYSIWYG editors simply because none of them was good enough - and I wouldn't trust any of them (except possibly DreamWeaver, I'm not sure) to preserve PHP.

像许多Web开发人员一样,我很久以前就停止使用WYSIWYG编辑器,因为它们都不够好 - 我不相信任何一个(除了可能是DreamWeaver,我不确定)保留PHP。

But lately I have found myself more willing to use existing software. I've delivered several corporate sites based on WordPress, which gives clients a WYSiWYG editor for their pages while still giving me the freedom to write the code.

但最近我发现自己更愿意使用现有的软件。我已经提供了几个基于WordPress的公司网站,它为客户提供了一个WYSiWYG编辑器,同时让我可以*编写代码。

#4


1  

If you want to use a WYSIWYG editor, I would suggest using it just to create the initial layout. Once you've started adding PHP to the page, it will be impossible for an editor to accurately show what the page looks like. So at that point, you should start editing it by hand, in a text editor.

如果你想使用WYSIWYG编辑器,我建议你只使用它来创建初始布局。一旦开始将PHP添加到页面中,编辑器将无法准确显示页面的外观。那么在那时,您应该在文本编辑器中手动编辑它。

You can simplify this if you use some sort of template system. This could be a real template engine like Smarty, but it doesn't need to be. The idea is simply to keep as much PHP out of the HTML file as possible, other than printing data and control statements (loops and such). Then include the file from the main script, which does all the heavy lifting. This way, if your design changes, it will be easier to create a new template using your WYSIWYG editor.

如果使用某种模板系统,可以简化此操作。这可能是一个真正的模板引擎,如Smarty,但它不需要。除了打印数据和控制语句(循环等)之外,这个想法只是尽可能地将PHP保留在HTML文件之外。然后包括主脚本中的文件,它完成所有繁重的工作。这样,如果您的设计发生变化,使用WYSIWYG编辑器创建新模板会更容易。

#5


1  

I like Dreamweaver MX (and later) because it offers the code-completion of plain-text utilities that focus on hand-coding with the WYSIWYG capabilities you may desire to quickly code pages. I also just happen to like its HTML compatibility checks against IE, Netscape etc.

我喜欢Dreamweaver MX(及更高版本),因为它提供了纯文本实用程序的代码完成功能,这些实用程序专注于使用您希望快速编写页面的WYSIWYG功能进行手工编码。我也碰巧喜欢它对IE,Netscape等的HTML兼容性检查。

#6


1  

I prefer BBEdit for developing anything web, but you could try out phpDesigner 2008: http://www.mpsoftware.dk/phpdesigner.php (for PC)

我更喜欢BBEdit开发任何网页,但你可以试试phpDesigner 2008:http://www.mpsoftware.dk/phpdesigner.php(适用于PC)

#7


1  

I find it faster to type everything (with a text editor that supports code-completion) then test it on the browser rather than using WYSIWYG, stumbling into a problem ("hm, why does it look different ?") and cleaning up the source code later.

我发现输入所有内容(使用支持代码完成的文本编辑器)更快,然后在浏览器上测试它而不是使用WYSIWYG,绊到一个问题(“嗯,为什么它看起来不一样?”)并清理源代码代码以后。

Of course, if you are somewhat new to HTML / CSS it might be a good choice to stick to WYSIWYG for a while.

当然,如果你对HTML / CSS有些新意,那么坚持一段时间的WYSIWYG可能是一个不错的选择。

Personally, I find that Adobe Dreamweaver CS3 is sufficient for both.

就个人而言,我发现Adobe Dreamweaver CS3对两者都足够了。

#8


1  

well if you'd ask me dreamweaver is still the best wywsiwyg out there currently after tapping out the features that MS Frontpage had (which i have used before it)

好吧,如果你问我Dreamweaver仍然是最好的wywsiwyg目前在淘汰MS Frontpage的功能(我之前使用过)

although today im not really using any WYSIWYG editors anymore as i do not trust them anymore to give clean markup... what im using right now is notepad++ its free and open source and is much like unix's notepad, but hey its not wysiwyg anymore just a plain text editor

虽然今天我还没有真正使用任何WYSIWYG编辑器,因为我不再相信它们给予干净的标记...我现在使用的是notepad ++它的免费和开源并且很像unix的记事本,但是它不再是wysiwyg了纯文本编辑器

#9


1  

Dreamweaver is probably the best. Unfortunately there's no open source alternative (that I know) that compares to DW. I've tried Kompozer (Nvu) before and it's pretty lightweight and it does the job. It is worth a try.

Dreamweaver可能是最好的。不幸的是,与DW相比,没有开源替代品(我知道)。我之前尝试过Kompozer(Nvu)并且它非常轻巧,它可以完成任务。值得一试。

#10


0  

TinyMCE comes close as a free lightweight dreamweaver alternative which contructs valid XHTML code. The text engine is running at netEditr.com. You can also sketchup some PHP code using the code editor there, just select PHP in the syntax for syntax coloring.

TinyMCE作为一个免费的轻量级Dreamweaver替代品,可以构建有效的XHTML代码。文本引擎在netEditr.com上运行。您还可以使用代码编辑器在其中绘制一些PHP代码,只需在语法着色的语法中选择PHP。

#1


3  

The only one I've used is Dreamweaver, can't say I liked it that much as the preview it displays wasn't how it actually looked in a browser.

我唯一使用的是Dreamweaver,不能说我喜欢它,因为它显示的预览并不是它在浏览器中实际显示的样子。

Nvu is supposed to be quite good though.

Nvu应该是相当不错的。

I prefer just editing in an IDE then viewing in a real browser.

我更喜欢在IDE中编辑,然后在真实的浏览器中查看。

#2


2  

Unfortunately, the best one I've used as far as WYSIWYG is Dreamweaver, and I don't like it that much either, but it is a standard part of the toolset in many web shops, and you just get used to it.

不幸的是,就WYSIWYG而言,我所使用的最好的是Dreamweaver,我也不喜欢它,但它是许多网店中工具集的标准部分,你只是习惯了它。

I currently use Aptana for that sort of prototyping, which is not really WYSIWYG, but has a great preview function, and I don't end up having to go back through crappy WYSIWYG generated markup and cleaning it up later.

我目前使用Aptana进行那种原型设计,它并不是真正的WYSIWYG,但具有很好的预览功能,而且我最终还是不得不通过糟糕的WYSIWYG生成的标记返回并稍后进行清理。

I have never used the php part of Aptana (don't do much php), but have friends who seem to like it. The JS stuff is brilliant, and the CSS editor pretty good too.

我从来没有使用过Aptana的php部分(不要做太多的PHP),但有朋友似乎喜欢它。 JS的东西很精彩,CSS编辑器也很棒。

#3


2  

Like many web developers, I long ago stopped using WYSIWYG editors simply because none of them was good enough - and I wouldn't trust any of them (except possibly DreamWeaver, I'm not sure) to preserve PHP.

像许多Web开发人员一样,我很久以前就停止使用WYSIWYG编辑器,因为它们都不够好 - 我不相信任何一个(除了可能是DreamWeaver,我不确定)保留PHP。

But lately I have found myself more willing to use existing software. I've delivered several corporate sites based on WordPress, which gives clients a WYSiWYG editor for their pages while still giving me the freedom to write the code.

但最近我发现自己更愿意使用现有的软件。我已经提供了几个基于WordPress的公司网站,它为客户提供了一个WYSiWYG编辑器,同时让我可以*编写代码。

#4


1  

If you want to use a WYSIWYG editor, I would suggest using it just to create the initial layout. Once you've started adding PHP to the page, it will be impossible for an editor to accurately show what the page looks like. So at that point, you should start editing it by hand, in a text editor.

如果你想使用WYSIWYG编辑器,我建议你只使用它来创建初始布局。一旦开始将PHP添加到页面中,编辑器将无法准确显示页面的外观。那么在那时,您应该在文本编辑器中手动编辑它。

You can simplify this if you use some sort of template system. This could be a real template engine like Smarty, but it doesn't need to be. The idea is simply to keep as much PHP out of the HTML file as possible, other than printing data and control statements (loops and such). Then include the file from the main script, which does all the heavy lifting. This way, if your design changes, it will be easier to create a new template using your WYSIWYG editor.

如果使用某种模板系统,可以简化此操作。这可能是一个真正的模板引擎,如Smarty,但它不需要。除了打印数据和控制语句(循环等)之外,这个想法只是尽可能地将PHP保留在HTML文件之外。然后包括主脚本中的文件,它完成所有繁重的工作。这样,如果您的设计发生变化,使用WYSIWYG编辑器创建新模板会更容易。

#5


1  

I like Dreamweaver MX (and later) because it offers the code-completion of plain-text utilities that focus on hand-coding with the WYSIWYG capabilities you may desire to quickly code pages. I also just happen to like its HTML compatibility checks against IE, Netscape etc.

我喜欢Dreamweaver MX(及更高版本),因为它提供了纯文本实用程序的代码完成功能,这些实用程序专注于使用您希望快速编写页面的WYSIWYG功能进行手工编码。我也碰巧喜欢它对IE,Netscape等的HTML兼容性检查。

#6


1  

I prefer BBEdit for developing anything web, but you could try out phpDesigner 2008: http://www.mpsoftware.dk/phpdesigner.php (for PC)

我更喜欢BBEdit开发任何网页,但你可以试试phpDesigner 2008:http://www.mpsoftware.dk/phpdesigner.php(适用于PC)

#7


1  

I find it faster to type everything (with a text editor that supports code-completion) then test it on the browser rather than using WYSIWYG, stumbling into a problem ("hm, why does it look different ?") and cleaning up the source code later.

我发现输入所有内容(使用支持代码完成的文本编辑器)更快,然后在浏览器上测试它而不是使用WYSIWYG,绊到一个问题(“嗯,为什么它看起来不一样?”)并清理源代码代码以后。

Of course, if you are somewhat new to HTML / CSS it might be a good choice to stick to WYSIWYG for a while.

当然,如果你对HTML / CSS有些新意,那么坚持一段时间的WYSIWYG可能是一个不错的选择。

Personally, I find that Adobe Dreamweaver CS3 is sufficient for both.

就个人而言,我发现Adobe Dreamweaver CS3对两者都足够了。

#8


1  

well if you'd ask me dreamweaver is still the best wywsiwyg out there currently after tapping out the features that MS Frontpage had (which i have used before it)

好吧,如果你问我Dreamweaver仍然是最好的wywsiwyg目前在淘汰MS Frontpage的功能(我之前使用过)

although today im not really using any WYSIWYG editors anymore as i do not trust them anymore to give clean markup... what im using right now is notepad++ its free and open source and is much like unix's notepad, but hey its not wysiwyg anymore just a plain text editor

虽然今天我还没有真正使用任何WYSIWYG编辑器,因为我不再相信它们给予干净的标记...我现在使用的是notepad ++它的免费和开源并且很像unix的记事本,但是它不再是wysiwyg了纯文本编辑器

#9


1  

Dreamweaver is probably the best. Unfortunately there's no open source alternative (that I know) that compares to DW. I've tried Kompozer (Nvu) before and it's pretty lightweight and it does the job. It is worth a try.

Dreamweaver可能是最好的。不幸的是,与DW相比,没有开源替代品(我知道)。我之前尝试过Kompozer(Nvu)并且它非常轻巧,它可以完成任务。值得一试。

#10


0  

TinyMCE comes close as a free lightweight dreamweaver alternative which contructs valid XHTML code. The text engine is running at netEditr.com. You can also sketchup some PHP code using the code editor there, just select PHP in the syntax for syntax coloring.

TinyMCE作为一个免费的轻量级Dreamweaver替代品,可以构建有效的XHTML代码。文本引擎在netEditr.com上运行。您还可以使用代码编辑器在其中绘制一些PHP代码,只需在语法着色的语法中选择PHP。