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
topsuccess
Junior Member
Junior Member
Posts: 2
Joined: 2012-02-15, 10:41 UTC

Post by *topsuccess »

Alextp wrote:2topsuccess
I didn't quite understand how to see prob with custom color. What did you do, by steps, on what lexer?
I open a .pas file, then click Option / Customize lexer styles.

Next, modify some Element's background/font color, example modify "Default" background from "Navy" to 0x333333, but after click "OK", this color is 0x010101 actually.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2topsuccess
I don't see the prob. If i enter custom color (R,G,B values in edits), then press "Add to custom colors" btn, then click newly custom color, then click OK - color is changed.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Beta
www.uvviewsoft.com/synwrite/

+ Find dlg: 120 DPI fix
+ "Msgbox on no result" opt
User avatar
Dalai
Power Member
Power Member
Posts: 9964
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Thanks for the quick fix(es)! But you introduced a new bug which wasn't there in 3.1.620 regarding the "Find/replace in files" function. Open the dialog and try to cancel it (without changing anything) - it doesn't work. It just says: "Folder not found". You have to click on "Current" (or type in / browse for an existing path) to cancel the dialog.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

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

Post by *mp81ss »

Hi to All!
I'm a fan of synwrite, and I download it every week.
I noticed that when opening a c++ source or scheme source, the font size is the one I previously set.
But when I open a CSHARP source, the font gets smaller.
I looked at the options but couldn't find anything usefull.
Can someone help?
michele pes
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

To chg font size of C#, you need
-call C# lexer
-call commnd "Options - Customize lexer styles"
-for style "Default" change font size
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Somebody's using WinDev?
WLanguage lexer needed? http://doc.pcsoft.fr/en-US/
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

Hi!
I really miss the Factor lexer (factorcodeDOTorg), a powerfull concatenative stack-based lang from a russian mathematician that I use regulary.

I also have several other feature request that may be useful but I'm not sure If I can propose.
Thanks in advance for the excellent work and instant support!
michele pes
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

I miss Factor's keyword list
like: IN USE USING MAIN. Could u give me list?
Maybe list of std functions too?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Factor:
http://uvviewsoft.com/bb/Fac.lcf
(Use "Import" in Lexer library dlg)
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

(sorry for the long post)
HI!
Importing the factor lexer worked very well (thanks).

Fortunately, all factor keywords are UPPERCASED,
so they are already OK.

Factor has too much words (functions) boxed into vocabularies, so there's no need to highlight them,
since this would color the 99.9% of a generic source file, because a stack-based concatenative language source
is just a list of functions (words in factor).
Moreover keywords like IN, USING, MAIN are never mixed to regular code, but just organize
the source file.

Just 2 things:
1) The string after IN: identify the vocabulary name.
It can be seen as the class name in a CPP file with
one class only. It would be nice to have this string
colored.

2) Word definitions: (like function prototype):
void hello();
: hello ( -- )

int f(float n);
: f ( RandomInputName -- RandomOutputName )

In factor, words can have 0..n parameters of input
AND
0..n parameters of output, so a word g that takes
1 parameter and returns 2 is "g: ( a -- b c )" and so on.


Adding these 2 features the lexer would be exactly as that of the JEdit editor (The JEdit author is the factor inventor...)

Anyway the lexer is more than sufficent, so thank you very much.


P.S.: cannot permanently disable the spell checker...
michele pes
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

cannot permanently disable the spell checker.
U need "Options - Spell checking" cmd, uncheck 1st checkbox.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Factor: testfile "extra-time" + Fac.lcf: www.uvviewsoft.com/bb/ . On testfile it shows tree: 3 items-funcs. Ok?

I didn't color IN param (it looks not ok as USING also has params - why not to color them too)
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

WONDERFULLLL!
Tree support + code folding appeared :-)

I lost all lexers and downloaded the last portable binaries
that already has factor support.

I forgot:
words can be defined by these keywords:
":" "::" "MEMO:" "MEMO::" "TYPED:" "TYPED::"

Words defined this way are member of the current vocabulary, but do not belongs to any class hierarchy,
thus is correct to have them in a single entry on tree.

Since Factor support the OOP paradigm, now I give a quick look to the hierarchy system to enable
"the tree" in the tree.

P.S.: Is it possible to create a new file doubleclicking on the tabbar?
Post Reply