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
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

Very old C source declared parameters that way, ANSI compliant. I think that is the problem.

I found del line, but not copy-line / cut line
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2mp81ss
I can't fix that "Old style C decl". If i add "skipping of text before {" then some folding become incorrect. You can try:
open c lexer properties,
Rules tab,
"function begin" rule,
"Conditions" tab on right,
after condition "{" add new condition and set "Condition: skip".

1st func now OK. 2nd not. And folding not OK for other funcs.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

CPP:

http://uvviewsoft.com/bb/cpp.lcf (use Import in CPP lexer props). Fix by Matthias. He 's not sure it OK, and Iam too. Pls try.
I add 'Copy line'/ etc.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

CPP lexer: no, still not ok. codefolding is broken
C# has better support for this sample file. tree better than original cpp lexer, but codefolding is ok.

not sure if I can find and transfer alls settings from C# lexer to C++ lexer...
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

HI,
Just to avoid reinventing wheel, ctags support parsing of
dozens of languages.
ctags.sourceforge.net/languages.html
For other languages you can continue to use your parsing engine.
It is gpl but works very well, hope can help.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Ctags looks a little complicated and maybe not needed as i have tree already. I may look later, not needed now.
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

I agree, not needed, just an IDEa, but not too much complicated.

Using external tools, I'm having some trouble in running applications stored in paths containing spaces.
Ex. "C:\program files\etcccc\random.exe"
can you check?

When I choose to capture otput, and no output is produced (ex. gcc compilation) an annoyng msgbox is shown.
can we have a checkbox to disable this?
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

When assigning the same hotkey to a command, a msgbox is shown, should be avoided
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

in running applications stored in paths containing spaces
No prob running "C:\Program Files\Java\jdk1.7.0_02\javac.exe".
U must specify filename w/o quotes.
an annoyng msgbox is shown.
Sure, i add
same hotkey to a command, a msgbox is shown
It intentional. Why not to show?
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

Sorry alex, was my fault, external prog ok.

When I reexecute an external tool that has no output, the output panel is not cleared.

P.S.
Why when I want output panel to be shown, the search panel is shown too?
Can I hide it?
How can I make something appear in search panel?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

the output panel is not cleared
fix
How can I make something appear in search panel?
Using cmd "Find/Replace in files". It can't be hidden. it needed.

Beta
+ when no output, no annoying msg shown
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

AEN007 wrote:Notepad2-mod 4.2.25.705 is now available and has the promised aviSynth syntax highlighting.
As far as I know, that is the only place to find aviSynth synhiliting.
I am wondering about finding aviSynth in SynWrite?
Of course almost immediately after I posted the above statement,
I found some aviSynth synhiliters ... like avsP-mod
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2AEN007
AviSynth is already in SW. Call it in Lexer menu.
User avatar
AEN007
Junior Member
Junior Member
Posts: 53
Joined: 2011-11-10, 15:44 UTC

Post by *AEN007 »

Alextp wrote:2AEN007
U can test command "Options- Restore lexer styles". Install beta .exe only(No LexLib.lxl update). Then open config of all your lexers, press OK. Styles backuped in SynStyles.ini. then u can install LexLib.lxl and call "Restore lexer styles".
www.uvviewsoft.com/bb/
I guess I don't see aviSynth, because I have not (yet) done anything about the above.
I always download the SyW.rar, unpack it & copy it (except the included lexer) into place.
It is not clear to me (yet) how to update my lexer without losing 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 »

unpack it & copy it (except the included lexer) into place
1. U need updated LexLib.lxl. AviSynth inside.
2. to not loose ur custom settings, see FAQ: "How to keep my own lexer settings"
- OR- do what I wrote(above).
Post Reply