富文本IDE
有谁知道基于 javascript 的富文本框,其行为有点像 IDE,以便在管理系统中我可以为 CSS 和/或 HTML 提供一个文本区域,以便将其写入框中,并且输入采用颜色编码,例如如果您在 Notepad++、Visual Studio 等中进行编辑,则颜色的自定义会很棒,但肯定不是必需的!
我确信肯定至少有一个,但我很难通过 Google 搜索找到任何一个,而是得到了大量 FCKEditor 风格富文本框的结果。
谢谢你的帮助!
史蒂夫
Does anyone know of a javascript based Rich Text box that behaves a bit like an IDE so that in a management system I can provide a text area for CSS and/or one for HTML to be written into the box and the input is colour coded like it is if you edit in Notepad++, Visual Studio etc Customsiation of the colours would be superb but certainly not essential!
I was sure there must be at least one but I'm struggling to find any through Google searches and instead am getting numerous results for FCKEditor style Rich Text Boxes.
Thanks for any help!
Steve
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
CodeMirror 看起来像你想要的。
我还打算建议 Bespin 但我认为浏览器技术需要赶上它(它使用 HTML 5 等)
CodeMirror loks like what you want.
I was also going to suggest Bespin but I think browser technology needs to catch up with it (it uses HTML 5 etc.)
我对你需要什么有点困惑。 我的理解是,您正在寻找一种工具,您可以在一个文本框中输入 HTML,在另一个文本框中输入 CSS,然后该工具将样式应用于 HTML,为 HTML 着色,就像在 Notepad++ 中一样。
如果是这样的话,我不知道你期望的最终结果是什么。 它是内联样式吗,以便您可以将结果粘贴到页面上并显示它? 对我来说,这一切听起来会让事情变得比你手工做的更复杂——可维护性等等。我认为你不会在任何地方找到这样的工具,这对我来说似乎不合逻辑。
I'm a bit confused about what you need. What I understood is that you are looking for a tool, where you input HTML in one textbox, CSS in another one, and the tool applies the style to the HTML to color the HTML like in Notepad++.
If this is the case, I don't know what you expect as an end result. Is it inline styling, so that you can paste the result on a page and have it displayed? To me all this sounds like it would make things more complicated than you would do it by hand - maintainability, etc. I don't think you'll find such a tool anywhere, it doesn't seem logical to me.
不确定我是否理解你的问题,但你应该看看
syntaxhighlighter
Not sure if I understand your question but you should have a look at
syntaxhighlighter
我还从另一个来源向我发送了另一个名为“CodePress”的选项:Sourceforge 上的 CodePress 链接
这个包括行号和不同的语言选项,可能对某人有用,因为我认为,从外观上看,我更喜欢这个选项而不是 CodeMirror。
I've also been sent this from another source for another option called 'CodePress': CodePress link on Sourceforge
This one includes line numbers and different language options, might be useful to someone as I think, by the looks of it, I prefer this option to CodeMirror.