I was going to propose that, but an extension tampering with core files is not such a great idea.
1. Updating will always be a problem
2. Security concers having write permissions to core files.
3. There is no three. Sorry. Out of ideas!
I'd guess this one needs referring to mark to see if he has any bright ideas how to get it to cut up his code properly. It does seem a little beyond the scope of an extension but you never know.
Well I've managed to input the code thanks to Krak and I'm not getting a parse error now. I can see Live Preview right underneath the comment box BUT I'm not actually getting a preview...
Here's an extension to enable you to preview in any format if you want:
http://nick-e.cjb.cc/vanilla/PreviewPost.php.txt
Uses ajax to refer back to itself and parse the text along your choice of formatting. Might be a little buggy, but so far it works as planned.
I have too much time on my hands...
Whoops, already found a problem. I originally was using the Vanilla js data manager to send the info, but that utilizes the HTTP GET method, and thus wasn't able to send all of the information sometimes when there was an especially large amount. Fixed it now.
Does anyone have this extension?
None of the links I have found so far work. Also, I may need an older version since I am using the 9.6 build of vanilla.
I found the .php file, but can't find the preview.js
Thanks
Comments
I can see Live Preview right underneath the comment box BUT I'm not actually getting a preview...
giginger goes off to read the info again.
Now that that section works I finished reading it. Of course I posted BEFORE I actually read the rest of the file.
But I had a little problem with german umlauts. In your "Preview Post" extension v1.1 you might replace line 113 with this one to fix this:
So, I enter a math problem
a + b = c
And now I press Preview Post, and the preview shows me:
a b = c
Just thought I'd mention it.