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 forgot:
words can be defined by these keywords
Pls provide .factor testfile (small) with all these. So i Could test.
OOP paradigm
If you know it: also give testfile.
create a new file doubleclicking on the tabbar?
No: u may press "New" ico on toolbr
User avatar
lzvk25
Member
Member
Posts: 183
Joined: 2003-02-09, 04:28 UTC
Location: Collierville, TN

LexLib.LXL

Post by *lzvk25 »

Is there a way to keep (or save) the file ...\Syn2\HL\LexLib.LXL before every update ?

Everytime there is an update for this plugin, it is it replaced by the version from the update and if we made changes to the colors or fonts for any lexer, they are lost and it takes a lot of time to remake them.

This is specially true when we also made changes to the default colors or in other words, we created another ".colors" file in the ...\Syn2\Template\colors\ directory and obviously the original LexLib.LXL from the update won't match those new colors.
:?
Memo to Boss : No TC, No Work
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

You need command "Options- Restore lexer styles" (See FAQ too)
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
lzvk25
Member
Member
Posts: 183
Joined: 2003-02-09, 04:28 UTC
Location: Collierville, TN

Post by *lzvk25 »

Alextp wrote:You need command "Options- Restore lexer styles" (See FAQ too)
Actually, I couldn't find this option, and for what I see, this option is not there anymore. It looks like I should use the "save lexer library" function in the "Customize Lexer Library..." sub-option and when I need to restore, I should use the "Open Lexer Library" function.
:?

Am I doing something wrong here ?
:?:
Memo to Boss : No TC, No Work
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2lzvk25
You don't see commd (turn on Uppr menu): Options -- Restore - REstore lexer styles.
User avatar
lzvk25
Member
Member
Posts: 183
Joined: 2003-02-09, 04:28 UTC
Location: Collierville, TN

Post by *lzvk25 »

Alextp wrote:2lzvk25
You don't see commd (turn on Uppr menu): Options -- Restore - REstore lexer styles.
Thank You !! I finally found it.
:D
Memo to Boss : No TC, No Work
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

Hi,
I didn't check the latest changes to factor lexer since my boss was quite angry this week-end :-(
I uploaded a file that should be clear enough in helping generate the tree.
"mp81ss.narod.ru/syn.factor"

P.S.: Is there an option that allow one instance only instead of open a window for each file ?
michele pes
User avatar
Dalai
Power Member
Power Member
Posts: 9964
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

There is still an error in the "Search/replace in files" function. It doesn't accept root paths like "C:\", it just says "Folder not found". Tested the latest build from totalcmd.net (3.2.780).

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 »

Dalai
Fixed
(Filenames may be shown as d:\\d.txt if found in root. It ok)

2mp81ss
See Interface tab in Options. Single instance there.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Factor
Fixd comment. Tree: added items. Tree now not full-featured, only list of classes/methods/etc shown. no hieararchy.
Hierarchy (in tree) is not-simple programming task, i can't do it yet..

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

Post by *mp81ss »

Great work, as always, factor tree is very good.
Comments are not completely fixed.
They work only if ! is the first char of the line:

ex1:
! This is a comment
The line above is correctly colored as comment.

but when ! is not the 1st char of line, no comments are detected:

ex2:
: ( str -- )
print ; ! Just print the passed string

In this case, no comments are detected/colored.
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 »

O, Tks. I upload fix to uvviewsoft.com/bb/Fac.lcf . Side effect: multiline comments folded with extra line..
User avatar
mp81ss
Junior Member
Junior Member
Posts: 33
Joined: 2012-01-24, 09:00 UTC
Location: Italy

Post by *mp81ss »

Hi,
I'm now dayly using the editor together with visual studio and
I have some trouble with bookmarks/markers.

Basically we need to:
1) Toggle a bookmark
2) goto next bm
3) goto prev bm
4) Clear all bms

Limit it to n (n = 10) and navigate them with "absolutely-addressing" is really uncomfortable.
Is there a way to achieve this behaviour?

P.S.: (This is the standard behaviour of the most common editors)
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Currently Unnumbered bkmarks not implemented. I ll think about it.
Post Reply