View Full Version : Script Editor - Indentation
NewsArchive
04-12-2017, 03:18 AM
Hi Friedrich -
Is there a reason that you don't indent on the #IF types of
directives? I like how it indents on the loop wizard. It's easy on the
eyes.
Thanks.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
04-12-2017, 03:19 AM
Jeff,
> Is there a reason that you don't indent on the #IF types of
> directives? I like how it indents on the loop wizard. It's easy on the
> eyes.
Ah, "Compiler Directive" #IF's... I've never used any.
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Creative Reporting: http://www.CreativeReporting.com
Product Release & Update Notices
http://twitter.com/DeveloperPLUS
Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"
NewsArchive
04-12-2017, 03:20 AM
Also, the color of the line in the script editor looks like it's
disabled or something. A blue color like the loop wizard would make
sense to me.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
04-15-2017, 02:38 AM
Hi Jeff,
> Also, the color of the line in the script editor looks like it's
> disabled or something. A blue color like the loop wizard would make
> sense to me.
I think the typical blue color ("Logic Items") like Loop, Loop Wizard or If
and ElseIf would cause a great confusion. The blue color is for runtime
script items only. But the compiler directives (grey) have nothing to do
with runtime items.
Because indentation on #ifcompvar, #ifconst, #ifdef, #iffile caused a
support nightmare in SetupBuilder 5 beta versions (it made the script code
completely "unreadable") there was a poll about it in late 2005. As a
result, indentation on #if, etc. was removed.
I believe the code is still there but commented out. I can try to re-enable
it for you and add an "Enable Indentation for Preprocessor Items" checkbox
option in the IDE (disabled by default). And I can add an option (Options |
Editor | Syntax Coloring) so you can change the "grey" color to "blue" for
#if items (default will be grey) if you want.
Friedrich
NewsArchive
04-15-2017, 02:39 AM
Hi Friedrich -
>Hi Jeff,
>
>> Also, the color of the line in the script editor looks like it's
>> disabled or something. A blue color like the loop wizard would make
>> sense to me.
>
>I think the typical blue color ("Logic Items") like Loop, Loop Wizard or If
>and ElseIf would cause a great confusion. The blue color is for runtime
>script items only. But the compiler directives (grey) have nothing to do
>with runtime items.
I can dig that, but it looks weird the way I'm using this particular
script. I guess most scripts aren't used for doing what this one does.
>Because indentation on #ifcompvar, #ifconst, #ifdef, #iffile caused a
>support nightmare in SetupBuilder 5 beta versions (it made the script code
>completely "unreadable") there was a poll about it in late 2005. As a
>result, indentation on #if, etc. was removed.
OK. I wonder how hard it would be to allow us to set our own
indentation? Kind of how we can do in our own style of coding? MS Word
has the "Increase Indent" and "Decrease Indent" toolbar buttons that
would make sense to me in the script editor. That would be cool. :)
>I believe the code is still there but commented out. I can try to re-enable
>it for you and add an "Enable Indentation for Preprocessor Items" checkbox
>option in the IDE (disabled by default). And I can add an option (Options |
>Editor | Syntax Coloring) so you can change the "grey" color to "blue" for
>#if items (default will be grey) if you want.
If there was a way to visually follow the logic other than nesting,
maybe that would be cool some day. I'll just use a lot of comment
lines.
Thanks Friedrich
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
04-15-2017, 02:39 AM
>> I believe the code is still there but commented out. I can try to re-enable
>> it for you and add an "Enable Indentation for Preprocessor Items" checkbox
>> option in the IDE (disabled by default). And I can add an option (Options |
>> Editor | Syntax Coloring) so you can change the "grey" color to "blue" for
>> #if items (default will be grey) if you want.
Dang, Jeff, you must be the Teacher's Pet!<g>
For those unfamiliar with the idiom...
<http://idioms.thefreedictionary.com/teacher%27s+pet>
Lee White
NewsArchive
04-15-2017, 02:40 AM
Glad your eye still works Lee<g>
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
04-15-2017, 02:40 AM
> Glad your eye still works Lee<g>
Better watch out. Lee is keeping an eye on you!
:-)
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ImageEx, ProScan, ProImage, ProPath and other
Clarion developer tools!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
NewsArchive
04-15-2017, 02:40 AM
Someone has to.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
04-15-2017, 02:41 AM
Charles,
> Better watch out. Lee is keeping an eye on you!
But is it the one with or the one without the patch?!?!?!<g>
Lee White
NewsArchive
04-15-2017, 02:41 AM
> But is it the one with or the one without the patch?!?!?!<g>
We just have to look closely at it to find out:
https://i1.wp.com/25.media.tumblr.com/8646fc28ce4c7e37509dc87de3f735c3/tumblr_mpme5m7i1W1qcga5ro1_500.gif
:-)
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ImageEx, ProScan, ProImage, ProPath and other
Clarion developer tools!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.