Forums

Syntax highlighting

David 13 Oct, 2009
Hi,

When you edit the code of a form created with chronoforms, all the code is black.
It's not very easy to debug/code like this.

Is there any possibilitie to color the code like in scite/gedit. (highlight keyword of the language,etc.)

thanks,

David
GreyHead 13 Oct, 2009
Hi David,

I've no idea how easy it would be to put that into a text box there.

If I work with forms of any length then I include the box content in from an external file and use an FTP editor to work on it with color highlighting and some debugging.

Bob
David 14 Oct, 2009
Hi,

It's exactly what i done, yes it's easy but (for me) it's not userfriendly.

Especially as you have a little screen with multiple window open or you want just to change 4 or 5 lines.

Thanks for the answer.
David
GreyHead 14 Oct, 2009
Hi David,

I have big screens - that helps a lot :-)

I put this code in the ChronoForms Form HTML box and save the form; then I can then do all my editing externally.
<?php
if ( !$mainframe->isSite() ) return;
require_once(JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'includes'.DS.'test_form_17'.DS.'formhtml.php');
?>

Bob
This topic is locked and no more replies can be posted.