Product, version and build: 7.4.119
32 or 64 bit version of product: 64 bit
Operating system: Windows 10
32 or 64 bit OS: 64 bit
Primal Sense recognizes words "Type" and IPAddress as key words in PowerShell Editor.
PrimalScript changes the word 'Type' to have a lower case T as 'type' instead of leaving the T character as typed when I clicked on the word 'Type' or when I pasted this word onto the editor. PrimalScript only keeps the T character as as an uppercase character only when I use double quotes characters for the string as "Type", but with single quotes the word Type will be change to 'type'.
PrimalScript also changes the color of the word IPAddress to show as blue color instead of leaving it as being in black color.
This feature of PrimalScript has been so annoying me when I write a PowerShell script that I need to use the word Type and IPAddress as my property names. Also this new version of PrimalScript, (beside not keeping the editor's customization such Auto hide, etc), appears to show the column for the line numbers being very wide. See the attached picture.
Please correct these issues.
Thank you.
Thank you.
Primal sense recognizes 'Type' and 'IPAddress' keywords
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Primal sense recognizes 'Type' and 'IPAddress' keywords
As for the IPAddress thing, IPAddress is a valid .NET type name. https://docs.microsoft.com/en-us/dotnet/api/system.net.ipaddress?view=netframework-4.7.2
It has been requested by our users that we color type names in order to avoid accidental use of such names as identifiers. You can set the color of type names to just
the regular text color if you do not want to see this.
The size of the line number gutter is calculated based on scaling factors, font size and maximum line numbers.
I cannot really see anything wrong with it in this little snippet you sent.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Primal sense recognizes 'Type' and 'IPAddress' keywords
Have you tried to click on "Type' or highlight the word 'Type' with your mouse?
The moment you highlight the word 'Type' or click on it a few times with your mouse, it will turn into 'type'.
The moment you highlight the word 'Type' or click on it a few times with your mouse, it will turn into 'type'.
Re: Primal sense recognizes 'Type' and 'IPAddress' keywords
IPAddress by itself should not be considered as a class. It should be a string unless it is used as PowerShell Type Accelerators which is enclosed with brackets like [IPAddress]. See the code snippet image I took from PowerShel Studio. In PowerShell Studio, IPAddress is treated as a string and the word Type stays as typed.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Primal sense recognizes 'Type' and 'IPAddress' keywords
I'll make sure it gets logged as as bug, thanks.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.