code prettify

4 views
Skip to first unread message

KeremTiryaki

unread,
Mar 24, 2010, 6:15:57 PM3/24/10
to gwt-ckeditor
Hi all,

I want to implement http://code.google.com/p/google-code-prettify/
features to gwtckeditor. But i am in truble because there are too many
Js files and I don't know where I should start to look js codes.

Anyway after some js inculuding, it is ready like <b>...</b> (bold)
implementation in your doc.

This is how to add prettycode to your doc;
These must be Included in your document.
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>

Put code snippets in <pre class="prettyprint">...</pre> or <code
class="prettyprint">...</code> and it will automatically be pretty
printed.

Call pretty funtion, after all.
prettyPrint();

Any suggestions?
Best Wishes

Damien Picard

unread,
Mar 25, 2010, 1:46:52 AM3/25/10
to gwt-ck...@googlegroups.com
Hi,

If I understand, you want to add syntax highlighting to ckeditor content ?
I think you will find a better help from ckeditor community ; maybe some highlighting plugins especially designed for ckeditor already exists. This could be a better way for you.

Regards,

2010/3/24 KeremTiryaki <keremt...@gmail.com>
To unsubscribe from this group, send email to gwt-ckeditor+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
Damien Picard
Axeiya Services : http://axeiya.com/
gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/
Reply all
Reply to author
Forward
0 new messages