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 »

24March2012

Greetings.

I would like to try to clarify some things and hash out a work-around solution if necessary.

As far as I can tell the SynStyles.ini does not preserve all customizations I might have made to lexers.
It seems to me I cannot use that method without losing some work I have done.
Alextp wrote:
2.Won't re-importing overwrite any/all changes
2. Yes, reimport 'll overwrite my changes.
It seems to me (based on the above) method 2 won't achieve any update to my LexLib.lxl, or
would my reimport not overwrite avisynth & other changes you have been making?

How could I import parts of your new LexLib.lxl into mine?
I suppose I could open both in PNP or Np2 and cut & paste?

Maybe some partial import funciton already exists ...
or could come into existence?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

SynStyles.ini does not preserve all customizations I might have made to lexers.
SynStyles has all needed changes: styles (font+color+attr), ext list, code templates.
would my reimport not overwrite avisynth & other changes
"Import" of PHP changes entire PHP.
One lexer- one import.
All your changes of PHP - font/style/attr/rules/etc- restored on PHP import

Import of PHP - no affect on AviSynth

1. Export all your lexs to .lcf files:
PHP.lcf, HTML.lcf, C.lcf
2. Update LexLib
3. Import your PHP.lcf, HTML.lcf, C.lcf
(goto PHP props, call Import, select PHP.lcf;
goto C props, call Import, select C.lcf...)


a) above ^^^^ - if u need ALL your changes to PHP, HTML, C.
b) If u need only styles/exts of PHP, HTML, C u can do "Restore" from SynStyles.ini.
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

HI,
Sometime, I see the tree so lonely...
For assembler sources, the procedures are defined this way:

proc_name PROC
; asm code...
proc_name ENDP

I think the tree could be populated with proc_name and so on...

Just another wish...
In recent files, after clear list, can we have something like "clear missing files"?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

1. maybe macro can be in ASM too (MACRO/ENDM)?
Pls give sample file wth 2-3 procs (small). Better with macros.

2. something like "clear missing files"
There's opt "Check recent file list on startup".
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

mp81ss.narod.ru/syn/syn.asm
contains procs/macros examples.

When I run SW, and I execute an external tool, the output panel is shown. If then I close it, the left part of tree is not refreshed.
Can you check it?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

www.uvviewsoft.com/bb/A.lcf
Upd. for NASM.
Can you check it?
I can't fix all redraw issues. sorry
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Redraw: if i close Output by F8 then drawing OK. Only bad with closin by X.
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

27March2012
Greetings.
Alextp wrote:
SynStyles.ini does not preserve all customizations I might have made to lexers.
SynStyles has all needed changes: styles (font+color+attr), ext list, code templates.
When I looked in SynStyles.ini, I did not see any AHK keywords.
I extensively customized my AHK keywords.
I'm also not sure exactly of every change on every lexer tab that I might have made.
It (still) seems to me SynStyles.ini does not completely backup everything of an individual lexer.

I guess I should export each customized individual lexer
and them import each export into your latest lexer?

When I "turned off" Live Spelling, it would still be turned on next time I launched SynW.
I had to manually edit SynSpell.ini»

Code: Select all

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

Post by *Alextp »

1. SynStyles.ini backup: styles/fonts/attrs (Styles tab)+ code templates+ ext list.
Keywords not saved. I assume u can send me ur keywords list (If it OK for AHK!)
I should export each customized individual lexer
and them import each export into your latest lexer?
Yes
When I "turned off" Live Spelling
U must use dlg "Options -- Spell checking".
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

Hi,
mp81ss.narod.ru/syn/syn.scm should help in populating scheme sources tree.

P.S.:
Output panel seems to drop consequent duplicate lines.
Is this intentional?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

syn.scm
Thank. :)
Is this intentional?
Yes. I do it because of Delphi output
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

mmm, intentional for delphi...
I'm running interpreter that shows the output of some process where is highly undesiderable not to have full output.
can we have an options for this?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Sure: i make option.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Beta(Same URL)
+ no duplic. removing for output
+ SCM lex: folding, tree
Post Reply