Syntax highlighting

View previous topic View next topic Go down

Syntax highlighting

Post  mthompson on Mon Oct 27, 2014 12:20 pm

Hello John,

Thanks for making your great software free. Next time I buy anything from Amazon, I'll be sure to go there via one of your ads. Smile 

This has probably occurred to you already, but would it be a lot of work to add syntax highlighting to the editor? I know it's not really an important feature, but it does make for easier reading/writing of code.
Just a suggestion.
Thanks again,
Mike

mthompson

Posts : 3
Join date : 2014-10-27

View user profile

Back to top Go down

Re: Syntax highlighting

Post  Admin on Mon Oct 27, 2014 1:52 pm

Mike,

I have thought about it in the past, but to add syntax coloring would require me to change the editor to a "styled document". I haven't worked with those yet, so I don't know how difficult it is to deal with. But the style formatting codes, if they're embedded in the text, will make it very difficult to work with the existing Stats101 code.

I'll keep it in mind and look into how much trouble it would be to add coloring. No promises though.

John

Admin
Admin

Posts : 5
Join date : 2011-09-05

View user profile http://statistics101.forumotion.com

Back to top Go down

Re: Syntax highlighting

Post  mthompson on Tue Oct 28, 2014 3:28 am

I'll keep it in mind and look into how much trouble it would be to add coloring. No promises though.

Ok, thanks John, that's all I ask. Obviously it's not going to be worth your while doing a massive rewrite for the sake of a relatively minor feature.

mthompson

Posts : 3
Join date : 2014-10-27

View user profile

Back to top Go down

Re: Syntax highlighting

Post  Admin on Tue Oct 28, 2014 6:48 am

As an example to see how much help coloring would be, I made a mock up of some syntax-colored code:

http://i39.servimg.com/u/f39/19/04/07/24/exampl10.png

Any comments or suggestions are welcome.

John

Admin
Admin

Posts : 5
Join date : 2011-09-05

View user profile http://statistics101.forumotion.com

Back to top Go down

Re: Syntax highlighting

Post  mthompson on Wed Oct 29, 2014 1:49 am

It looks good, John.

As a compromise, perhaps just capitalize all commands/keywords as they are entered?

Just a suggestion. It would be better than nothing if syntax highlighting is too much work, but then capitalizing may involve just as much, I've no idea.

mthompson

Posts : 3
Join date : 2014-10-27

View user profile

Back to top Go down

Re: Syntax highlighting

Post  Admin on Wed Oct 29, 2014 7:21 am

Automatic capitalization wouldn't be that hard, but even now, you can capitalize all the commands in a program with a single click any time using the button with the capital "A" on it. And some people might prefer lower case, which can also be forced with a single click on the button with the lower case "a". So, with auto-capitalization, there would need to be a Preference that would allow it to be turned off for those who don't like it. 

I'm still looking into the syntax coloring, though. It's an attractive idea.

Admin
Admin

Posts : 5
Join date : 2011-09-05

View user profile http://statistics101.forumotion.com

Back to top Go down

Re: Syntax highlighting

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum