Hi, I have created a blog with FCK as the text editor. I am writing a tutorial to go on the blog which includes html source code for the readers to copy. I need to figure out a way that I can copy and paste the tutorial into FCK without the html getting stripped out or the post messing up. I have tried using <pre> and <code> tags but nothing seems to work properly. Any help would be most appreciated.
Thanks,
Simon
Thanks,
Simon
Re: Pasting code into FCK
<html>
<head>
</head>
<body>
</body>
</html>
Re: Pasting code into FCK
Re: Pasting code into FCK
Re: Pasting code into FCK
FCKConfig.ProtectedSource.Add( /<code[\s\S]*?<\/code>/gi);
Re: Pasting code into FCK
What do you mean by scrambled? do you mean that HTML such as <head> pasted into the editor becomes <html>? If so this is just FCKEditor HTML encoding the input so it will be correctly rendered as formatted text and not HTML.
You could try my HTML code syntaxhighligher plugin, it might help you achieve what you are looking for.