View Single Post
Old 31 Jul 2014, 23:49
tbworld tbworld is offline
Join Date: Oct 2008
[quote=Scanu;2509223]I've seen nerbert's solution but i don't really like EditArea
I'd love to use codemirror with vbulletin as mode, i get codemirror working but the html mixed mode don't fit well with vbulletin template syntax.
I ended up grabbing vbulletin mode from vb5 but it doesn't work very well, for example as i said the style is for some html reasons different and also I can't use anymore codemirror's addons, such as code folding and autoclose tag.. So i'd love to see how you implemented it if possible, i'm not asking to realease a modification of corse

When I have time, I will take a look at what I did. Mine is really a kludge, meaning that I do not use the plugin system -- so I have to kind of hunt things down. I do remember writing/adding some helper JavaScript to get things working the way I wanted. It needed a little help in exception wording for vbulletin curly braces, <vb-if> tags and highlighting. Not sure if I ever added code folding and I am sure I stripped out the code dragging function. @Nerbert's code never did any of it and it worked perfectly fine. I remember helping a friend use codemirror on a vbulletin project and we pretty much used the standard distribution.

Unfortunately, I cannot find @Nerbert's code listed on the board; not sure what happened there, maybe I imagined he released it.

I am not hung-up on sharing or showing code, if it is legal to share. The company I work for, owns me so I have a few restrictions there, other than that I am happy to assist.

Last edited by tbworld; 04 Aug 2014 at 19:02.
Reply With Quote