Embed php js html code in tinymce, posible?

做~自己de王妃 提交于 2019-12-04 17:48:59

EDIT: sorry for the improper placement, Still kind of new here. As far as I know you can past code straight into tinymce and it won't interpret it. When it stores it it should add all the necessary escapes so when it's displayed on your blog or whatever it will look liek code. What it won't do it automatically format it in a nice read friendly fashion and add coloring and such. I imagine there must be a plugin or some alternative for that... bbiam :P

EDIT2: this -> http://www.maclovin.de/syntaxhl-editor/ seems like a good option.

download - > https://github.com/RichGuk/syntaxhl

EDIT3: also this might be nice as well -> http://code.google.com/p/google-code-prettify/ Makes the code all nice and pretty, hence the name.

ORIGINAL:I'm a bit confused, do you want code you put into tiny MCE to be active code or do you want it to be code samples?

<A href="www.google.com">google</a>

or http://www.google.com

Maybe, you can use this one: SyntaxHighlighter or some other syntax highlighter...

And use the forum/website of tinymce, because your question is related to tinymce. Read the manual. Look for plugins and the implementation of them.

Hint: Search first in the Resources of the developers or use google... Google Results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!