Page 1 of 1

PLEditor color

Posted: Jan 23 2009
by TJ
I have an indicator that is not showing any colors in the PLeditor.

all the words appear gray.

I can't figure out why.
I tried to change the Tools> Editor Options> Colors
but nothing works.

anybody know Why?

the indicator is about 3000 lines long. Would it make a difference?

Posted: Jan 23 2009
by brodnicki steven
Does it only happen with just one indicator ? (or all)

Posted: Jan 23 2009
by TJ
yes, just one indicator.

i copied the code to a new space... and it is the same gray color!!!

I copied a small section of the code to a new space...
the keyword colors came back.
then when I copy more sections over...
and the color turned gray.

strange, isn't it?

Posted: Jan 23 2009
by brodnicki steven
yes, that is strange. If it isn't proprietary, I'd be glad to try it and see if I have the same thing happen.

Posted: Jan 24 2009
by TJ
I figured it out... the Editor can only hold so many characters.
I pared down the words, using acronyms and short forms wherever possible.
and the magic color came back !

;-)

Posted: Jan 24 2009
by brodnicki steven
I figured it out... the Editor can only hold so many characters.
I pared down the words, using acronyms and short forms wherever possible.
and the magic color came back !

;-)

** Shouldn't the editor be unlimited in size ? (within reason- maybe 20 pages)
** Marina please explain the size limitation in PLeditor ?

Posted: Jan 26 2009
by Marina Pashkova
I figured it out... the Editor can only hold so many characters.
I pared down the words, using acronyms and short forms wherever possible.
and the magic color came back !

;-)

** Shouldn't the editor be unlimited in size ? (within reason- maybe 20 pages)
** Marina please explain the size limitation in PLeditor ?
Hi guys,

Studies in PowerLanguage can contain up to 10,000 lines.
However, after 1,000 lines the code is not coloured - to enhance performance.

Posted: Jan 28 2009
by TJ
Hi guys,

Studies in PowerLanguage can contain up to 10,000 lines.
However, after 1,000 lines the code is not coloured - to enhance performance.
it would be nice if there is a switch to quickly toggle between color ON/OFF.


also additional features like #include, it should reduce the file size and make editing easier.

Posted: Jan 28 2009
by Marina Pashkova
Hi TJ,

Thank you for the suggestions.

Posted: Feb 04 2010
by Bruce DeVault
I can understand how this came into being some time ago, but this really should be made optional - with today's very powerful PCs, there should be an option to enable coloring on all lines of code in the editor and this should not be an issue.

Posted: Feb 04 2010
by Bruce DeVault
Work-around - in your registry:

HKEY_CURRENT_USER\Software\TS Support\MultiCharts\PowerLanguage Editor\Settings\ConstraintHLTextSize

Set this value to 0 and it will remove the restriction but may slow down the editor significantly for large files.

Posted: Feb 04 2010
by Bruce DeVault
It would be great if this could be added to the PowerLanguage Editor's preferences, to make it easier to adjust, as on today's powerful PCs it may be less of an issue and any time users edit the registry, there is a potential for error.

Posted: Feb 04 2010
by Anastassia
It would be great if this could be added to the PowerLanguage Editor's preferences..
That is a great suggestion Bruce, thank you!
We will consider it for the future.