Syntax highlighting in Powerlanguage Editor

Questions about MultiCharts and user contributed studies.
aljafp
Posts: 184
Joined: 28 Oct 2005
Been thanked: 1 time

Syntax highlighting in Powerlanguage Editor

Postby aljafp » 26 May 2010

hi,
Have anyone ever experience indicator script that cannot get any form of syntax highlighting in Powerlanguage editor ?

My other scripts are fine, but a particular script, the editor just shows all code in dark gray color.

The script can compile and run, but this problem makes it hard to read and edit.

any help is appreciated. thanks !

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Postby TJ » 26 May 2010

you have been working too hard

see 5th post:
http://forum.tssupport.com/viewtopic.php?t=6845

aljafp
Posts: 184
Joined: 28 Oct 2005
Been thanked: 1 time

Postby aljafp » 27 May 2010

you have been working too hard

see 5th post:
http://forum.tssupport.com/viewtopic.php?t=6845
thanks TJ.

That's what i initially thought.

The script with problem is approx 1500 lines long.

But i have a number of that are >2000 lines and syntax highlighting is fine.

So i figured is not just a limitation due to code size.

aljafp
Posts: 184
Joined: 28 Oct 2005
Been thanked: 1 time

Postby aljafp » 21 Jun 2010

In case there are others experiencing the same problem as me.

I cut and past my codes into wordpad.
Then i paste it back into powerlanguage editor unmodified.

The highlighting came back.

Don't ask me why :)

Just something to try in case you are frustrated with the same problem like me.

cheers

aljafp
Posts: 184
Joined: 28 Oct 2005
Been thanked: 1 time

Postby aljafp » 22 Jun 2010

In case there are others experiencing the same problem as me.

I cut and past my codes into wordpad.
Then i paste it back into powerlanguage editor unmodified.

The highlighting came back.

Don't ask me why :)

Just something to try in case you are frustrated with the same problem like me.

cheers
I correct myself.
After restarting powerlanguage editor, the syntax hightlighting disappeared again.

Damm.... again, don't ask me why lol

tekram
Posts: 96
Joined: 26 May 2009
Has thanked: 6 times
Been thanked: 18 times

Re: Syntax highlighting in Powerlanguage Editor

Postby tekram » 24 Jun 2010

..The script can compile and run, but this problem makes it hard to read and edit.. !
Have you tried Ultraedit or other programmer's editors with syntax highlight capability? The following shows a 100k lines EL in Ultraedit.
Image
Attachments
Ultraedit100kEL.gif
(160.05 KiB) Downloaded 624 times

aljafp
Posts: 184
Joined: 28 Oct 2005
Been thanked: 1 time

Re: Syntax highlighting in Powerlanguage Editor

Postby aljafp » 25 Jun 2010

..The script can compile and run, but this problem makes it hard to read and edit.. !
Have you tried Ultraedit or other programmer's editors with syntax highlight capability? The following shows a 100k lines EL in Ultraedit.
Image
thanks for the suggestion tekram, i would be willing to try ultraedit.

But how does it recognize powerlanguage syntax ?

thanks

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Postby Dave Masalov » 25 Jun 2010

Dear aljafp,

The limitation for studies highlighting is 10 000 symbols in PLE.

If you want to disable it, please go to Start --> Run --> regedit

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

If there is no such parameter, you should create DWORD parameter ConstraintHLTextSize, set its value as "0" and the limitation for highlighting will be disabled.

The default value is "1" (there ia a limitation of 10 000 symbols).

tekram
Posts: 96
Joined: 26 May 2009
Has thanked: 6 times
Been thanked: 18 times

Re: Syntax highlighting in Powerlanguage Editor

Postby tekram » 25 Jun 2010

..But how does it recognize powerlanguage syntax ?
thanks
Please refer to http://www.ultraedit.com/downloads/extras.html
The procedures are different depending on the versions of Ultraedit (UE). The attached Easylanguage text file is a 'wordfile' (coined by UE) that can be added to the default predefined syntax highlight choices.

No relations with UE. In fact there are many other editors capable of doing programmable syntax highlights.
Attachments
EasyLanguage.txt
(14.97 KiB) Downloaded 246 times


Return to “MultiCharts”