PLEditor color

Questions about MultiCharts and user contributed studies.
User avatar
TJ
Posts: 7146
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 987 times
Been thanked: 2040 times

PLEditor color

Postby TJ » 23 Jan 2009

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?

brodnicki steven
Posts: 407
Joined: 01 Jan 2008
Been thanked: 3 times

Postby brodnicki steven » 23 Jan 2009

Does it only happen with just one indicator ? (or all)

User avatar
TJ
Posts: 7146
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 987 times
Been thanked: 2040 times

Postby TJ » 23 Jan 2009

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?

brodnicki steven
Posts: 407
Joined: 01 Jan 2008
Been thanked: 3 times

Postby brodnicki steven » 23 Jan 2009

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.

User avatar
TJ
Posts: 7146
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 987 times
Been thanked: 2040 times

Postby TJ » 24 Jan 2009

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 !

;-)

brodnicki steven
Posts: 407
Joined: 01 Jan 2008
Been thanked: 3 times

Postby brodnicki steven » 24 Jan 2009

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 ?

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 26 Jan 2009

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.

User avatar
TJ
Posts: 7146
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 987 times
Been thanked: 2040 times

Postby TJ » 28 Jan 2009

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.

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 28 Jan 2009

Hi TJ,

Thank you for the suggestions.

User avatar
Bruce DeVault
Posts: 438
Joined: 19 Jan 2010
Location: Washington DC
Been thanked: 2 times
Contact:

Postby Bruce DeVault » 04 Feb 2010

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.

User avatar
Bruce DeVault
Posts: 438
Joined: 19 Jan 2010
Location: Washington DC
Been thanked: 2 times
Contact:

Postby Bruce DeVault » 04 Feb 2010

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.

User avatar
Bruce DeVault
Posts: 438
Joined: 19 Jan 2010
Location: Washington DC
Been thanked: 2 times
Contact:

Postby Bruce DeVault » 04 Feb 2010

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.

User avatar
Anastassia
Posts: 179
Joined: 18 Jan 2010
Been thanked: 4 times

Postby Anastassia » 04 Feb 2010

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.


Return to “MultiCharts”