Strange Coloring in PowerShell scripts

Use this forum to ask questions before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
greatbarrier86
Posts: 11
Joined: Mon Jan 11, 2010 1:57 am

Strange Coloring in PowerShell scripts

Post by greatbarrier86 » Thu Jan 14, 2010 5:38 am

It appears that when i browse through my script, the coloring changes randomly on certain areas. Unquoted stuff suddenly displays the quoted font and vice versa. It looks fine when i open it, but when i scroll down and click somewhere within the code, the font and color changes. I scroll to the top and click and it works fine. I'm pretty certain i can convince my boss to let me buy this, but i just want to make sure about this. Maybe i've set it up incorrectly.


On the http://support.sapien.com/logs/default.asp page, under PrimalScript 2009, it shows "Fix: Multiline coloring in PowerShell can cause incorrect coloring" but i installed the new version and it doesn't seem to fix the problem. Perhaps this isn't the same issue?

User avatar
Alexander Riedel
Posts: 7017
Joined: Tue May 29, 2007 4:43 pm

Strange Coloring in PowerShell scripts

Post by Alexander Riedel » Thu Jan 14, 2010 5:51 am

The best way to find this out is if you send a script that displays the problem (zipped) to support@sapien.com.
We made some changes to way multi-line strings are handled in PowerShell, so it is possible there is a kink or two left.

We are more than happy to look and investigate what you send us.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 7017
Joined: Tue May 29, 2007 4:43 pm

Strange Coloring in PowerShell scripts

Post by Alexander Riedel » Fri Jan 15, 2010 8:49 am

Please download build 625 and check if this resolves your problem.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
greatbarrier86
Posts: 11
Joined: Mon Jan 11, 2010 1:57 am

Strange Coloring in PowerShell scripts

Post by greatbarrier86 » Mon Jan 18, 2010 10:39 pm

That fixed it. Thanks so much Alex.