Drupal 7.10 所见即所得,带语法高亮
有没有人有确认/测试工作方式来设置丰富的所见即所得(如CKEditor或TinyMCE)并支持语法突出显示(用于粘贴)并在 Drupal 7.10 中共享 java/php/etc.)?
我现在已经尝试了多种组合,并且一直在努力让它们在 Drupal 7.10 中工作。 这是我尝试过的:
CKEditor (3.6.2) 使用带有语法荧光笔库的 CKEditor 模块 (7.x-1.6) 和 语法荧光笔模块 (7x-1.1)。我关注了 betuts.com/guide-install-syntax-highlighter-ckeditorckeditor-syntax-highlighter-plugin-drupal-7。
问题:我无法将代码按钮添加到我的 CKEditor 中。无论我做什么,我都不会出现 - 也许这与新的 拖放有关 添加按钮的方法取代了旧的基于文本的按钮。
CKEditor (3.6.2) 与 CKEditor 模块 (7.x-1.6) GeSHi Filter (7x-1.0) 模块和 GeSHi 库遵循本指南peterpetrik.com/blog/ckeditor-and-geshi-filter< /em>.
问题:与上面相同,我似乎无法让代码按钮出现在我的 CKEditor 中。
带有 CKEditor 和 Google Code Prettifier 模块+库的所见即所得模块。
问题:虽然这个解决方案很简单并且无需编辑器即可完美运行,但我根本找不到让 CKEditor(或任何其他 RTE)停止
内的 HTML 转义代码
我感谢您的帮助(这是我的第一篇文章:-)!
Does anyone have a confirmed/tested working way of setting up a rich WYSIWYG (like CKEditor or TinyMCE) with support for syntax highlighting (for pasting and sharing java/php/etc.) in Drupal 7.10?
I have now tried a variety of combinations, and I have struggled to get any of them to work in Drupal 7.10. Here is what I have tried:
CKEditor (3.6.2) using CKEditor module (7.x-1.6) with Syntax Highlighter library and
Syntax Highlighter Module (7x-1.1). I followed betuts.com/guide-install-syntax-highlighter-ckeditorckeditor-syntax-highlighter-plugin-drupal-7.Problem: I could not get a code button into my CKEditor. I just would not appear no matter what I did - perhaps it has something to do with the new drag-and-drop
method of adding buttons that has replaced the old text-based one.CKEditor (3.6.2)with CKEditor module (7.x-1.6) GeSHi Filter (7x-1.0) module and GeSHi libarary following this guide peterpetrik.com/blog/ckeditor-and-geshi-filter.
Problem: Same as above, I cannot seem to get the code button to appear in my CKEditor.
WYSIWYG module with CKEditor and Google Code Prettifier module + library.
Problem: Although this solution is simple and works beautifully with no editor, I simply cannot find a good way of getting CKEditor (or any of the other RTEs) to stop HTML-escaping code inside <pre> tags.
I appreciate your help (this is my first post :-)!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过更多工作后,我得到了以下组合。我还在此处编写了更详细的指南。
因此,这已被验证可与 Drupal 7.10、WYSIWYG 7-2.1 和 Prettify 7-1.x-dev 一起使用。
After some more work I got the following combination to work. I also did a more elaborated guide here.
So this is verified to work with Drupal 7.10, WYSIWYG 7-2.1, and Prettify 7-1.x-dev.
Lars,
我们在发布到 我们自己的网站并且必须修改CKEditor插件。
修改后的插件代码发布在 https://github.com/dbrain/ckeditor-syntaxhighlight /tree/ckeditor-4
Lars,
We ran into similar issue on our site when posting to our own site and had to modify CKEditor plugin.
Modified plugin code is posted on https://github.com/dbrain/ckeditor-syntaxhighlight/tree/ckeditor-4