有没有HTML wysiwyg编辑器?

时间:2022-09-11 19:56:02

I wonder whether there is any good WYSIWYG editor when it comes to editing complex HTML pages generated from ASP.NET, PHP, GWT or anything else. I've tried a lot of WYSIWYG tools, but after a certain point I always end up with manually editing the HTML source code or CSS to fix different issues. The editors I've tried are never compatible with the ASP.NET/PHP/etc code I'm writing.

我想知道在编辑从ASP.NET,PHP,GWT或其他任何东西生成的复杂HTML页面时是否有任何好的WYSIWYG编辑器。我已经尝试了很多WYSIWYG工具,但经过一定的时间点后,我总是手动编辑HTML源代码或CSS来解决不同的问题。我试过的编辑器永远不会兼容我正在编写的ASP.NET / PHP / etc代码。

Edit: I have used Visual Studio for a few years to do ASP.NET development. After a while, it always comes to the point where I can't even open the pages and user controls because they rely on so many things which aren't available in debug time.

编辑:我已经使用Visual Studio几年来进行ASP.NET开发。过了一段时间,它总是达到我甚至无法打开页面和用户控件的程度,因为它们依赖于调试时间内无法提供的许多内容。

6 个解决方案

#1


5  

You're not going to get anything that is perfect. You're almost always going to have to tweak the mark-up by hand at least a little bit.

你不会得到任何完美的东西。你几乎总是需要手动调整标记至少一点点。

Your best bet would probably be Adobe Dreamweaver for PHP and Visual Studio (Visual Studio Web Developer Express is free) for ASP.NET.

最好的选择可能是用于PHP的Adobe Dreamweaver和用于ASP.NET的Visual Studio(Visual Studio Web Developer Express是免费的)。

#2


1  

I love VS, but I'd rather make sweet love to a hedgehog than use the HTML editor. Expression Web does a much better job editing HTML.

我喜欢VS,但我宁愿用刺猬做爱,而不是使用HTML编辑器。 Expression Web在编辑HTML方面做得更好。

#3


0  

Personally I think that Visual Studio is the best for ASP.NET, although Expression Web also seems to be pretty good.

就个人而言,我认为Visual Studio是最适合ASP.NET的,尽管Expression Web看起来也不错。

But I personally I think it's the best for you to start writing more code and using the WYSIWYG part less and less. With Web applications it's all about the way they're displayed in the browser and I think that the browser is the tool which should be used for testing the GUI.

但我个人认为最好开始编写更多代码并越来越少地使用WYSIWYG部分。对于Web应用程序,它是关于它们在浏览器中显示的方式,我认为浏览器是应该用于测试GUI的工具。

#4


0  

I agree, I have Expression Web right now and it works well. You can move stuff around in design view but will of course, as stated above, have to render the code manually. But it works if you wanna see the changes you have made. I would always of course view it in the browser and not just rely on the design view. Also W3Schools is a great tool.

我同意,我现在有Expression Web,效果很好。您可以在设计视图中移动内容,但如上所述,当然必须手动呈现代码。但如果你想看到你所做的改变,它就有效。我当然会在浏览器中查看它,而不仅仅依赖于设计视图。 W3Schools也是一个很棒的工具。

#5


0  

WYSIWYG editors for complex web site/applications just never measure up IMHO.

复杂网站/应用程序的WYSIWYG编辑器永远不会测量恕我直言。

The problem comes down to wanting control of the HTML/CSS markup, yet also the flexibility to create a GUI via drag-n-drop. (the 2 are almost polar opposites)

问题归结为需要控制HTML / CSS标记,还有通过拖放操作创建GUI的灵活性。 (这两个几乎是极端的对立面)

Take a very simple example.

举一个非常简单的例子。

In WYSIWYG mode, I type/create (pretend that World is on the line right after Hello (the Markdown editor forces me to add an extra line break)):

在WYSIWYG模式中,我输入/创建(假装世界在Hello之后就行了(Markdown编辑器强迫我添加一个额外的换行符)):

Hello

World

What HTML should the editor create?

编辑器应该创建什么HTML?

Hello<br/>
<b>World</b>

<p>Hello</p>
<p><strong>World</strong></p>

<div>Hello</div>
<div><span style="font-weight:bold;">World</span></div>

<span class="abcNormal">Hello</span>
<br/>
<span class="abcBold">World</span>

(and a zillion more possibilities)

(还有更多的可能性)

I still think the best thing you can have is an editor/IDE that understands your component/tags and provides auto-completion and code-assist/intellisense - paired up with a very quick deploy option to test changes ASAP in real browser(s)

我仍然认为你可以拥有的最好的东西是一个能够理解你的组件/标签的编辑器/ IDE,并提供自动完成和代码辅助/智能感知 - 配合一个非常快速的部署选项来测试真实浏览器中的变化ASAP

#6


0  

Take a look at BBCode Editor

看看BBCode编辑器

http://richtexteditor.com/demo/bbcode.aspx

This example shows a simple BBCode formatter for the Editor.

此示例显示了编辑器的简单BBCode格式化程序。

#1


5  

You're not going to get anything that is perfect. You're almost always going to have to tweak the mark-up by hand at least a little bit.

你不会得到任何完美的东西。你几乎总是需要手动调整标记至少一点点。

Your best bet would probably be Adobe Dreamweaver for PHP and Visual Studio (Visual Studio Web Developer Express is free) for ASP.NET.

最好的选择可能是用于PHP的Adobe Dreamweaver和用于ASP.NET的Visual Studio(Visual Studio Web Developer Express是免费的)。

#2


1  

I love VS, but I'd rather make sweet love to a hedgehog than use the HTML editor. Expression Web does a much better job editing HTML.

我喜欢VS,但我宁愿用刺猬做爱,而不是使用HTML编辑器。 Expression Web在编辑HTML方面做得更好。

#3


0  

Personally I think that Visual Studio is the best for ASP.NET, although Expression Web also seems to be pretty good.

就个人而言,我认为Visual Studio是最适合ASP.NET的,尽管Expression Web看起来也不错。

But I personally I think it's the best for you to start writing more code and using the WYSIWYG part less and less. With Web applications it's all about the way they're displayed in the browser and I think that the browser is the tool which should be used for testing the GUI.

但我个人认为最好开始编写更多代码并越来越少地使用WYSIWYG部分。对于Web应用程序,它是关于它们在浏览器中显示的方式,我认为浏览器是应该用于测试GUI的工具。

#4


0  

I agree, I have Expression Web right now and it works well. You can move stuff around in design view but will of course, as stated above, have to render the code manually. But it works if you wanna see the changes you have made. I would always of course view it in the browser and not just rely on the design view. Also W3Schools is a great tool.

我同意,我现在有Expression Web,效果很好。您可以在设计视图中移动内容,但如上所述,当然必须手动呈现代码。但如果你想看到你所做的改变,它就有效。我当然会在浏览器中查看它,而不仅仅依赖于设计视图。 W3Schools也是一个很棒的工具。

#5


0  

WYSIWYG editors for complex web site/applications just never measure up IMHO.

复杂网站/应用程序的WYSIWYG编辑器永远不会测量恕我直言。

The problem comes down to wanting control of the HTML/CSS markup, yet also the flexibility to create a GUI via drag-n-drop. (the 2 are almost polar opposites)

问题归结为需要控制HTML / CSS标记,还有通过拖放操作创建GUI的灵活性。 (这两个几乎是极端的对立面)

Take a very simple example.

举一个非常简单的例子。

In WYSIWYG mode, I type/create (pretend that World is on the line right after Hello (the Markdown editor forces me to add an extra line break)):

在WYSIWYG模式中,我输入/创建(假装世界在Hello之后就行了(Markdown编辑器强迫我添加一个额外的换行符)):

Hello

World

What HTML should the editor create?

编辑器应该创建什么HTML?

Hello<br/>
<b>World</b>

<p>Hello</p>
<p><strong>World</strong></p>

<div>Hello</div>
<div><span style="font-weight:bold;">World</span></div>

<span class="abcNormal">Hello</span>
<br/>
<span class="abcBold">World</span>

(and a zillion more possibilities)

(还有更多的可能性)

I still think the best thing you can have is an editor/IDE that understands your component/tags and provides auto-completion and code-assist/intellisense - paired up with a very quick deploy option to test changes ASAP in real browser(s)

我仍然认为你可以拥有的最好的东西是一个能够理解你的组件/标签的编辑器/ IDE,并提供自动完成和代码辅助/智能感知 - 配合一个非常快速的部署选项来测试真实浏览器中的变化ASAP

#6


0  

Take a look at BBCode Editor

看看BBCode编辑器

http://richtexteditor.com/demo/bbcode.aspx

This example shows a simple BBCode formatter for the Editor.

此示例显示了编辑器的简单BBCode格式化程序。