Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
October 28, 20159 yr 26 minutes ago, bwx said: How to add more programming languages to the code editor? IPS 4.0 or 4.1?
October 28, 20159 yr 58 minutes ago, Nathan Explosion said: IPS 4.0 or 4.1? I wanna add .lua I using 4.1 ;p
October 28, 20159 yr 1 minute ago, bwx said: I've uploaded CodeMirror with more languages but it fails to load... It requires a little bit more than just uploading the languages, by the looks of it. I'll play around and see what I can come up with.
October 28, 20159 yr Author Yeah I've been digging into the templates and additional JS code, it seems they build more languages to be available, but when I added them to the CodeMirror build the entire code editor is broken, but it doesn't look like the CodeMirror was modified by IPS itself and I've been using the same exact version 5.8.1... why is it always have to be so hard :P
October 28, 20159 yr Yeah, I'm not going to dig too deep in to this I think - would be delving in to the IPS side of things a bit more than I'm comfortable with. IPS - could you maybe provide a guide on how we can use the http://codemirror.net/doc/compress.html page to integrate other languages in with the defaults you've used?
October 28, 20159 yr Author Everything about the code editor is hardcoded, available languages, default selected language, height of the dialog... hate this!
October 29, 20159 yr https://community.invisionpower.com/4guides/editor-and-emoticons/adding-code-languages-r97/
October 29, 20159 yr 47 minutes ago, Mark said: https://community.invisionpower.com/4guides/editor-and-emoticons/adding-code-languages-r97/ Thanks - but I don't believe that completes things as the code dialog box doesn't list the additional languages, as far as I can see. Scratch that - all good now, browser was playing silly buggers with the clearing of the cache and not doing it fully. Thanks Mark....exactly the same steps as I was doing yesterday....damn browser throwing off the scent. A note to all readers: Mark makes a very important point in step 4 - you need to make sure you keep codemirror.js (very first entry in the list) selected. If I remember correctly, yesterday when I was going through the above the result was a spinning circle on the code prompt and it would never finish loading. If you see that behaviour then you didn't select codemirror.js so repeat step 4 onwards again.
June 18, 20177 yr Does anyone still have a copy of this guide? We've been using it all this time to add Lua but now seems to be taken offline
September 14, 20177 yr We are trying to add TCL language to codebox as well. Anyone has any clue on where to find the correct documentation? Or how to do this?
Archived
This topic is now archived and is closed to further replies.