RE: How easy would it be to add something like this via a module or widget?

I actually made to widgets early on to play with creating them that do syntax highlighting.

http://coldbox.org/forgebox/type/contentbox-widgets

One uses the a javascript approach and the other uses ColdFish.

Curt

Brad,

Yeah I have a module at the moment which is almost ready for release, it is fully configurable from the administration menu. So I had also toyed with the same idea so that the module would take that snippet of code and provide the correct brush.

But I was looking for ideas on how to go about just entering the data for now, and the people could use there own modules / widgets later down the track to use what ever syntax highlighting they would like to use, to have it displayed on the front end.

Curt, yes I have seen that widget. But personally I don’t like it, sorry :frowning:

No worries, just making sure you knew I did some work in that direction.

I need to redo it now that we have some interception points that I could listen at to make the changes. Those didn’t exist when I created those.

Curt

Yes I am sure it has changed a lot…

If you are interested to see what I have done, and we can do attachments in here, I would be happy to provide what I have done so far.

Yes we have a listener now that you can tap into for rendering out the content. Are you using it?

So I guess the question is how to add a custom button to the editor right?

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano

Yeah, and whether this is going to be core to set a standard or not. My module for Syntax Highlighter and blogCFC work on the premise that it is

as well.

Yea. I need help here. Can you look at the way the editor is rendered and see where we could put another interceptor where a module developer can alter the editor settings and add some custom js

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano

Luis,

I am not asking for the editor to do the rendering here. I am just needing that text added, as if I had typed it like that.

Also if you would like me to create a video to demonstrate what I am asking, rather than trying to explain it then that may help. I would be more than happy to do this, so that you can see the problem, and maybe what I am asking for a solution that would work for all.