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
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

I have to export ALL the languages I customized?
Won't re-importing overwrite any/all changes
1. Yes
2. Yes, reimport 'll overwrite my changes.
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

18November2011
Greetings.
Thanks for the clarification.
I'm wondering about the value/ease of keeping a changelog for the lexlib file?
That way users could manually make changes to customized lexlib files and stay in sync with your releases ...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Not often changlog of LexLib needed. You 1st who needs. :)
I post changes in Readme/History.txt in form "Perl lexer fix"(W/o details).
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

AHK ACP: - "KW1" means "keyword"? - Could you add descr. text for all keys? (If it's hard u can leave it)
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Test- bracket red hiliting (If color not set in Lexer). URL: uvviewsoft.com/bb/
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

18November2011

Greetings.
Alextp wrote:AHK ACP: - "KW1" means "keyword"?
Ja
Alextp wrote:Could you add descr. text for all keys? (If it's hard u can leave it)
It is only my first "quick & dirty" AHK.acp.
I don't need any descriptions, so I didn't add any.
The autofill items are from my entries in the AHK lexer -
which are VERY case sensitive. AHK is NOT a case sensitive language,
but I like my script highighting to differentiate between MENU, Menu, menu, for example.

Anyway, here is a link to the ahk.api (which has some descriptions) from SctiTE.
Maybe someone could quickly make an Autohotkey.acp for SW from that?
I'll do what I can to add descriptions ... as time goes by ...
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

Alextp wrote:Not often changlog of LexLib needed. You 1st who needs. :)
I post changes in Readme/History.txt in form "Perl lexer fix"(W/o details).
Well ...
I am just trying to find a simple procedure to keep my lexer up to date with your changes
while keeping all my customizations. I don't see any other way at the moment.
Maybe someone (or I) will come up with a better idea ...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

If u 're only changing colors, some feature of keepin colors separately needed. If u change smth more hard, maybe u should send me your change
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

20November2011
Greetings.
So far -
- I've made LOTS of changes to the AHK lexer.
- I also went through and change lexer names
to match the lexer names I already have in Notepad2-mod.
- I also made file extension associations match those in Np2.
- I also changed color schemes for a handful of lexers to match my Np2 color schemes.

Maybe when you update the master lexer, you could create/use some kind of export/import/merge
type of file that would only update the specific fields of specific lexers?
Then users could review/delete items from that file before merging in updates?
... just a thought ...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

you could create/use some kind of export/import/merge
type of file that would only update the specific fields of specific lexers?
Hm, Don't think it's a good idea. Few users need such merge changes. Only style separate file needed.
When Ur AHK will be OK (give it time), send me your AHK.LCF.
made file extension associations match
If OK ext added, send me list (just list what ext are added)
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

23November2011

Greetings.

Today I decided to sync my NP++ lexer with Np2m&SyW
(even though I only ever use NP++ for AHK ...)
I had several (sizable) xml files open in SyW, and
several times SyW gave me an error message / popup ... something like~
Cannot focus on hidden window
I had to close & restart SyW several times. Maybe someone else is familiar with that?

I also could not find any way to "tile" file views ... not horizontally nor vertically.
It would be nice if that were possible.

The SyW assembler lexer does not have a "String" category.
Both NP++ & Np2m do, so I added that category to SyW.

The SyW "move right one word" seems to move a few characters too many -
at least compared to virtually all other apps ...

It still seems to me that manually entering your incremental lexer changes
is the only way for me to keep in sync with your lexer changes.
I have too many custom lexer settings.

You mentioned making some changes/fixes to SyW that are not in 2.7.150.
Are they available for download?

I'm going to try to create my own AEN language file for the menu bar items ...
I did that for NP++
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

I also could not find any way to "tile" file views ... not horizontally nor vertically. It would be nice if that were possible.
You can drag the tab line down to get a second "tiled" window. See here: Image: http://img811.imageshack.us/img811/4861/unbenannt1cx.png
The SyW "move right one word" seems to move a few characters too many - at least compared to virtually all other apps ...
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?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Last beta www.uvviewsoft.com/bb

>Cannot focus on hidden window
Can u reproduce? What steps?

>string. I added that category to SyW.
Ok. Send me your Asm lexer later.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Asm: added string. If u have more add-ons for Asm, send me pls.
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

24November2011

Is there any way to control how (not if) SyW will highlight links?
Not the toggle on/off but the color ...

I'm looking for the best synhiliting for rtf code.
LaTex is the best by default I guess but not good enough.
Matthias030 wrote:You can drag the tab line down to get a second "tiled" window.
Thanks. It seems to be only for a split view of the same file? Is there some way to tile viewing different files?
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.
Alextp wrote:>Cannot focus on hidden window
Can u reproduce? What steps?
Hard to say for sure. Download NP++.7z. Try out the stylers.model.xml, config.xml & myUDL
I have SyW set to "Watch, reload w/o question".
I was making changes via the NP++ GUI and SyW was quietly reloading.
I was un/commenting some xml lines.
I was doing Find/Replace ...
Alextp wrote:Ok. Send me your Asm lexer later.
I use assembler to format the VirtualDub jobs file, which says in it»
// VirtualDub job list (Sylia script format)
// This is a program generated file -- edit at your own risk.
I also use assembler to format m3u & pls playlists ...

I use PERL to format aviSynth scripts.
The next / a future release of Np2mod is supposed to indclude native .avs formatting.
Anyone who could tell me how to create a patch to Np2mod to improve the AHK synhiliting?
Np2mod says, "Don't ask for changes without providing a patch ..."
Post Reply