Statistics101
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Syntax highlighting

2 posters

Go down

Syntax highlighting Empty Syntax highlighting

Post  mthompson 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

Back to top Go down

Syntax highlighting Empty Re: Syntax highlighting

Post  Admin 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 : 7
Join date : 2011-09-05

https://statistics101.board-directory.net

Back to top Go down

Syntax highlighting Empty Re: Syntax highlighting

Post  mthompson 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

Back to top Go down

Syntax highlighting Empty Re: Syntax highlighting

Post  Admin 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:

https://i.servimg.com/u/f39/19/04/07/24/exampl10.png

Any comments or suggestions are welcome.

John

Admin
Admin

Posts : 7
Join date : 2011-09-05

https://statistics101.board-directory.net

Back to top Go down

Syntax highlighting Empty Re: Syntax highlighting

Post  mthompson 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

Back to top Go down

Syntax highlighting Empty Re: Syntax highlighting

Post  Admin 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 : 7
Join date : 2011-09-05

https://statistics101.board-directory.net

Back to top Go down

Syntax highlighting Empty Re: Syntax highlighting

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


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