Jump to content

More programming languages in the editor

Featured Replies

Posted

How to add more programming languages to the code editor? 4.1

26 minutes ago, bwx said:

How to add more programming languages to the code editor?

IPS 4.0 or 4.1?

58 minutes ago, Nathan Explosion said:

IPS 4.0 or 4.1?

I wanna add .lua 

I using 4.1

;p

There you go - much more information now provided as a result of my question ;)

  • Author

I've uploaded CodeMirror with more languages but it fails to load...

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.

  • 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

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?

  • Author

Everything about the code editor is hardcoded, available languages, default selected language, height of the dialog... hate this!

47 minutes ago, Mark said:

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.

  • 1 year later...

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

  • 2 months later...

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.

Recently Browsing 0

  • No registered users viewing this page.