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
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Alextp wrote:Seems i fixed it for "$". I skip next 2 chars (for \r\n) or 1 char (for \n or \r) on replacement.
Fix confirmed, thank you!
I wonder if \n\r is ever used instead of \r\n
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Only 1 of /n/r, /r/n supported (don't remember which).
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

10November2011

Greetings.
Last week I stumbled across the SynWrite listing @ FreewareFiles and have been trying it out.
SynWrite seems versatile. I use AHK and do not often encounter editors that do AHK syntax highlighting.

I seem to have configured/hacked the SW AHK syn-HL to match my/the custom AHK syn-HL I use in NP++.
I suppose, if/when it is time to update SW versions,
I can keep my LexLib.lxl file/changes?

At the moment I would like be able to use the un/comment menu item.
It does not work for me - neither through the menu nor with a hotkey ...

NP++ can capture keystokes and save them a user macro.
Is there some way to automate certain keystrokes in SW?

Any helpful replies/insights appreciated.
Thanks for SW in any case!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

I can keep my LexLib.lxl file/changes?
Installer prompts for LexLib update
to use the un/comment menu item.
AHK lexer misses "comment char". Open ahk, goto Configure Lexer dlg, in 1st tab enter ";" as line comment char.
Ill update AHK too.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Fixed 2-3 AHK errs. www.Uvviewsoft.com/bb/
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

[face=tahoma]10November2011

Greetings.
Thanks for the replies!! and the AHK comment fix!

I downloaded the .rar and use SW as "portable" / install-free,
so I would just not replace my LexLib.lxl file?
Is that link you just posted for a whole new LexLib.lxl?
Should/Could I manually make the AHK fixes you just made?

If you are interested, I could give you my LexLib.lxl file,
so you could check my custom AHK syn-HL.
Could we create an acp file for AHK?

The un/comment for ini files was not working for me either, but I fixed that too ...

I do not understand what the "Insert character / whole string (Data = PChar)" hotkey options should do ...

Is SW supposed to remember recent files between sessions?

It would be nice if SW gave the results for "Replace / Replace All" operations.

At first SW always opened with the Tree showing.
I could not find any way to disable that through the GUI,
but I found/tweaked the appropriate line in the Syn.in file.

What data does the SynState.ini file contain?
I have a script that synchonizes certain files across my 3 XP laptops.
It syncs the SW Syn.in & the LexLib.lxl files but not the SynState.ini file
because I do not know what it does ...[/face]
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

>Is that link you just posted for a whole new LexLib.lxl?

Yes. If u need keeping your AHK settings: goto Configure Lexer dlg, press Export button. Save .lcf file. U can Import .lcf later.
(No time now)
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

>Could we create an acp file for AHK?
You can. U can see ACP format in other file.

>The un/comment for ini files
Fixed

>what the "Insert character / whole string (Data = PChar)" hotkey
I don't know. That left from EControl

>to remember recent files between sessions?
It remembers. U can see file list in Open dropdown.

>SW always opened with the Tree showing.
I could not find any way to disable that
You can close Tree by X btn. :)

>What data does the SynState.ini file contain?
Saved states (Last encoding, selection....)
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

>SW always opened with the Tree showing.
For me it remembers state of tree window only by closing syn with "X" button (upper right corner of window) or by pressing ALT+F4. Closing syn by menu (File -> Exit) don't work for that case.
So if you want to never show tree window at syn start, then close it and press ALT+F4. Then for the next startup this window should not appear.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Closing syn by menu don't work for that case
Fixed
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

17November2011

Greetings.
Alextp wrote:>Could we create an acp file for AHK?
You can. U can see ACP format in other file.
Here is my first hack of an AHK.acp»AHK.acp
Alextp wrote:>to remember recent files between sessions?
It remembers. U can see file list in Open dropdown.
When I reopen SW, there are never any files listed under "Open Recent".
I can save/reload sessions.

I would give "Open Recent", Load Session & Save Session some kind of &hotkey ...
I would remove the &hotkey from "Close and &delete".
I accidentally hit "e" under the File dropdown menu, and
SW closed all my files ... at least I did not accidentally hit "d" ...

I used ResourceHacker to change the SynW.exe icon»
SynWIt seems every editor uses a pad & pen/cil.
I've changed lots of exe icons with RH.

I've downloaed the latest SW.rar but still do not understand
how to update my LexLib.lxl and keep my customizations.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

When I reopen SW, there are never any files listed under "Open Recent".
Do u have "Misc -- History -- 1st edit" 0? If it not 0, send me your Syn.ini (%AppData%\SynWrite\Syn.ini)
Email - About box
some kind of &hotkey ...
Ill add it
update my LexLib.lxl and keep my customizations.
Goto your lexer properties (Using Lexer Dibrary Dlg). Press Export btn. Save under ___.lcf. Then u can restore it.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

When I reopen SW, there are never any files listed under "Open Recent".
Please make sure that remembering of last files is activated in options. Go to "Options -> Customize -> Misc 2" and look under "History" how many files should be remembered for next startup.
I would give "Open Recent", Load Session & Save Session some kind of &hotkey ...
I would remove the &hotkey from "Close and &delete".
I accidentally hit "e" under the File dropdown menu, and
SW closed all my files ... at least I did not accidentally hit "d" ...
These hotkeys that you want to change are hardcoded in syn for english language. For all other languages you can edit language files. But I do not suggest to do that. Much better is to define your own hotkeys in "Options -> Customize -> Keys".
I've downloaed the latest SW.rar but still do not understand
how to update my LexLib.lxl and keep my customizations.
If there are updates in lexlib in a new syn version, you should also update your lexlib with the new provided one. To don't lost your own customizations you should save your changed lexers in sparated lexer files BEFORE updating to the new syn version. To do that do the following:
Go to "Options -> Customize lexer library". Select the lexer you want to export and press "Export lexer" icon. After updating syn with new lexlib file you can re-import your lexers in the same way.
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

18November2011
Greetings.
Matthias030 wrote:
When I reopen SW, there are never any files listed under "Open Recent".
Please make sure that remembering of last files is activated in options. Go to "Options -> Customize -> Misc 2" and look under "History" how many files should be remembered for next startup.
I already had that setting set to 20. It was not working at first - but this morning I see that it is now working!?!
So, I guess - never mind. I think it is great that SW numbers the files from &1 to &9
then switches to &A to &Z! I've never seen another app do that.
Matthias030 wrote:
I would give "Open Recent", Load Session & Save Session some kind of &hotkey ...
I would remove the &hotkey from "Close and &delete".
I accidentally hit "e" under the File dropdown menu, and
SW closed all my files ... at least I did not accidentally hit "d" ...
These hotkeys that you want to change are hardcoded in syn for english language. For all other languages you can edit language files. But I do not suggest to do that. Much better is to define your own hotkeys in "Options -> Customize -> Keys".
My point is that the &e hotkey in the "Close and &delete" item under the file dropdown menu is dangerous.
Because it is hardcoded, I made the posting/point. (Some editors have a language file for customizing the English menus ...).
I already have my Options -> Customize -> Keys set. Anyway, there is no option for sessions nor open recent;
& even if there was, setting those hotkeys would not remove the danger of "Close and &delete" nor "Clos&e all" ...
Matthias030 wrote:
I've downloaed the latest SW.rar but still do not understand how to update my LexLib.lxl and keep my customizations.
If there are updates in lexlib in a new syn version, you should also update your lexlib with the new provided one. To don't lost your own customizations you should save your changed lexers in sparated lexer files BEFORE updating to the new syn version. To do that do the following:
Go to "Options -> Customize lexer library". Select the lexer you want to export and press "Export lexer" icon. After updating syn with new lexlib file you can re-import your lexers in the same way.
If I export then re-import won't that overwrite all/any changes to the lexlib file that may have been made?
I already used "Customize lexers library" to make my SW syntax match my already existing settings for NotePad2-mod
(which I like very much also but does not have MDI ...).
(I also use NP++ - but exclusively for AHK. I always ahve about a dozen ahk scripts open in it. NP++ has great features.)

I have to export ALL the languages I customized? What about my first point?
Won't re-importing overwrite any/all changes that might have been made to languages?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

& even if there was, setting those hotkeys would not remove the danger of "Close and &delete" nor "Clos&e all"
Removed &e, &d from "Close and del", "Close all". Added hotkeys(Opt) for Save/Load session.
Post Reply