Feature Reqquest - Code Syntax Highlighting

Permalink Browser Info Environment
It sure would be a nice improvement to Theme Designer if you added code syntax highlighting for all the code areas. Couldn't you plug in something likehttp://highlightjs.org/ ?

Type: Discussion
Status: Resolved
OKDnet
View Replies:
OKDnet replied on at Permalink Reply
OKDnet
Like, dislike, or for some unknown reason not practical?
ramonleenders replied on at Permalink Reply
ramonleenders
Not sure how good it would work upon pasting/writing code in the textareas. I'm currently swamped with a big project though (and little side projects), so I got this bookmarked.

If you are willing to have a go at implementing it and sending me the changes/additions, don't mind if you do. Will save me some trouble with current deadlines.

Kind regards,

Ramon
OKDnet replied on at Permalink Reply
OKDnet
I don't know if/when I could get to trying this myself, so whomever can pull it off first...

As to "how good it would work upon pasting/writing code in the textareas", I'm not sure if it's the right library for the job either. On that note, however, I did also just find this alternative
http://ace.c9.io/

And from this demo of it in action I'd say it looks very promising
https://ace.c9.io/build/kitchen-sink.html...

In fact, the only reason I stumbled upon it was because I saw it is what this new add-on is using
https://www.concrete5.org/marketplace/addons/highlight-file1/...

Regards,
Owen

concrete5 Environment Information

NA

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.