prbaron / pbckcode

A CKEditor plugin to easily add code into your article
Apache License 2.0
44 stars 26 forks source link

UI syntaxhighlight issue #3

Closed rgade007 closed 11 years ago

rgade007 commented 11 years ago

Hi Pierre Baron,

Thanks for your wonderful plugin. I have small request. Kindly see attached screen-shot. When I add code in dialog box, it shows highlighted syntax (code with colors), but when I click 'OK' and see in editor it looses highlighted syntax (color) and it appears as plain black text. Can you please help to render same colorful content from dialog box to ckeditor area and please provide me a link for the same if there is any.

Thanks, Roshan

syntaxt_highlight no_highlight

rgade007 commented 11 years ago

Hi Pierre Baron,

I just saw previous issue and done changes as per your instructions from 'https://github.com/prbaron/PBCKCode/pull/1' and added highlight.js folder in ckeditors plugins. Now my output with pre tag --> code tag(with respective language name as a class), but it does not show any colorful styling. Still my output is black-white. If you have any solution or tutorial then please provide me a link.

Thanks, Roshan

prbaron commented 11 years ago

Hi, Thanks for your report. I fear that you do not totally understand the purpose of this plugin. This plugin enables you to write code with IDE-like elements such as error detection, color highlighting,... and to create the real output for third parties syntax highlighter. If you click on the Source button of your CKEditor, you will see the output generated by the plugin. It will help you to colorize your code if you write tech blogs for example. At no point should this plugin adds color into the CKEditor.

I am currently writing a better documentation, and your return is very helpful for me. Thanks to you.

I will see if your request could be a feature in a future version.