SynWrite (Syn2)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

AEN007 wrote:I'm going to try to create my own AEN language file for the menu bar items ...
I did that for NP++
I have quickly abandoned that idea.
I just had a look at the DEU lang file and the 2000+ lines in it ...
NP++ has a customizable ENG lang file.
Maybe someone could quickly produce/publish
a customizable ENG lang file for SyW?
Alextp wrote:Asm: added string.
I would like to see / know exactly what you did to add string.
The way I added string is really just an uninformed hack ...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

someone could quickly produce/publish
a customizable ENG lang file
Not possible..
what you did to add string.
See upd. uvviewsoft.com/bb/ .Next answer later
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Matthias030 wrote:I can see no error in function "move right one word (ctrl+right)".
Maybe it depends on file encoding or lexer that is used? Can you provide sample or example?
I don't want to write a long explanation. SyW moves past commas, for example»
SingleInstance, FORCE. SyW will move to F. All other apps will move to ,
One could seemingly try/find lots of other examples.
Ok. I understand. I have tested your example with some other editors and see that most of them jump to ",". A few of them do it like SynWrite. For myself I like the current behaviour more than jumping to ",". Option "move cursor right one word" means to jump to next "Word" and SynWrite is exactly doing this. Only [A-Z,a-z,0-9] are recognized as "next word". Of course that is my only opinion and maybe many people like the other behaviour more.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Ctrl+right: may fix later.

--control how (not if) SyW will highlight links
+ opt color "Links hilite"
removed: opt color "Hints text/BG"
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

25November2011

Greetings.

I find setting syntax colors easier when I edit directly by using color codes
instead of the Color popup GUI ... ... Like opening stylers.xml or np2.ini
(although Np2 allows directly editing color codes through the GUI ...).
NP++ & Np2 use the six digit RBG codes.

I opened LexLib.lxl in Np2m. LexLib.lxl seems to use other formats like ...
Font.Color = clWindowText
BgColor = 15724510.
Anyway, in LexLib.lxl it seems entries ABOVE (not below)
LexerName = 'AutoHotKey'
are for AHK?

I would like to set some color codes by editing LexLib.lxl.
That would be easier.
I just need to find the correct 8 digit color code & then edit the correct entries.
Any problems with doing that?
Matthias030 wrote:For myself I like the current behaviour more
Maybe SyW could (easily) accomodate both?
Move Right 1 word / Move Right 1 object
I find the current behavior makes working in SyW more difficult.

Maybe SyW could (easily) add some more Move hotkeys?
NP++ has lots under Scintilla Commands ...
I really miss move right to end of word ...
User avatar
Flint
Power Member
Power Member
Posts: 3506
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

[offtop]
AEN007
It's not necessary to put the date into each post; the date is shown by the forum engine automatically in the post header.

[/offtop]
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Anyway, in LexLib.lxl it seems entries ABOVE (not below)
Quote:
LexerName = 'AutoHotKey'
are for AHK?
What do you mean? I don't understand.
2. 8 digit color code - i haven't plan to chg LXL color format.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

I'll make Ctrl-Rt/left work like NP++.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Made Ctrl+Left|Right like NP++
Test. same link
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

26November2011
Greetings.
Alextp wrote:2. 8 digit color code - i haven't plan to chg LXL color format.
I wasn't suggesting or asking about changing the color code at all.
Alextp wrote:
Anyway, in LexLib.lxl it seems entries ABOVE (not below)
LexerName = 'AutoHotKey'
are for AHK?
What do you mean? I don't understand.
I don't know how to rephrase what I've already written.
I want to edit LexLib color entries by opening LexLib in Np2m and
changing color codes instead of changing every color by the Custom Colors popup GUI.
Can I do that? Will LexLib still function?

The entry
LexerName = 'AutoHotKey'
in LexLib seems to be below all the lines for AHK.
It seems the "LexerName = " line in LexLib is always the last line (not the first line) for each language...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

It seems the "LexerName = " line in LexLib is always the last line for each language
yes. Note you have many LCF entries, each has LexerName at bottom. Note SynWr has lexer for LXL. (U can do replace in it)
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

-Fix: ctrl-d @last line
-fix: php lowercase
User avatar
Clas Hortien
Senior Member
Senior Member
Posts: 200
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

Hi,

is it possible to set a default file extension when saving a new textfile ? The best would be to propose the extensions from the current lexer and the first one as the default.

Is this possible and if not, would you please be so kind and implement it ?

Many thanks

Clas
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

The best would be to propose the extensions from the current lexer
Not possible yet.
while file is not saved, lexer may be undefined- so no default.
U mean u choose lexer first, then save a file?
User avatar
Clas Hortien
Senior Member
Senior Member
Posts: 200
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

No, I have a default lexer for "all other" files by specifying a * as the extension. This lexer will be active for all new files. It has the extension list of "txt log 1 2 3 4 5 6 rpt tab old *" and it would be great to have this list as the possible extensions for saving (and txt as the default).

Many thanks

Clas
Post Reply