SynWrite (Syn2)
Moderators: Hacker, petermad, Stefan2, white
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
3 ideas for tuning autocomplete a bit more:
1) HTML: Press "<" and choose tag <body>. Syn2 writes "<body ". That's correct. But if you open autocomplete by CTRL+SPACE and select tag <body> it is only written "body " without "<"
2) PHP: For every entry in autocomplete list there is a small description shown. By scrolling by mouse through the list, the description is changing. But if you scroll with Keyboard through list the description is not changed to current selected entry.
3) Example: Use autocomplete for "<table" then "bgcolor='". Finally you can select only "color #000000". On the screen is now "<table bgcolor='#000000" but autocomplete window is still open. It should be closed.
For the similar example "<table align='left" autocomplete is closed correctly after "left"
1) HTML: Press "<" and choose tag <body>. Syn2 writes "<body ". That's correct. But if you open autocomplete by CTRL+SPACE and select tag <body> it is only written "body " without "<"
2) PHP: For every entry in autocomplete list there is a small description shown. By scrolling by mouse through the list, the description is changing. But if you scroll with Keyboard through list the description is not changed to current selected entry.
3) Example: Use autocomplete for "<table" then "bgcolor='". Finally you can select only "color #000000". On the screen is now "<table bgcolor='#000000" but autocomplete window is still open. It should be closed.
For the similar example "<table align='left" autocomplete is closed correctly after "left"
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
I have sent you mail.
On the screen is "<table bgcolor='". Now I select color #00000 by typing ' and not use "ENTER". On the screen is now <table bgcolor='#000000'
By typing ' I can select an autocomplete value and the closing ' is written behind automatically. For these values it is better to use it with ' and not by "ENTER"
I hope that my description is easy to understand
I have thinked it over and the best solution is not to change it. It is only a minor bug and it only affects some autocomplete entries. It must not be fixed. I can help me this way:i can partially fix, by closing autocompl. window on typing '.
So you put closing ' and window is closed.
On the screen is "<table bgcolor='". Now I select color #00000 by typing ' and not use "ENTER". On the screen is now <table bgcolor='#000000'
By typing ' I can select an autocomplete value and the closing ' is written behind automatically. For these values it is better to use it with ' and not by "ENTER"
I hope that my description is easy to understand

- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
found another syn2 crash: in php autocomplete choose any function name (eg. array_map). Now press STRG+SPACE again and choose any other autocomplete value. Syn2 crashes now.
It seems it has to do with these function hints that apears on the screen. Every time such an function hint is shown, no further autocomplete value can be choosen.
This crash is only for your record. It has no high priority for me.
It seems it has to do with these function hints that apears on the screen. Every time such an function hint is shown, no further autocomplete value can be choosen.
This crash is only for your record. It has no high priority for me.
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
I've thought about optimizing/fixing html autocomplete. Currently html autocomplete only works for start tags like <body>, but not for end tags like </body>. Autocomplete could be changed this way:
for start tags: "<" and CTRL+SPACE opens autocomplete window. select "body" writes to screen: "<body ". Now autocomplete window remains open so that you can use following sub values to complete your input: <body alink='#000000 (currently "<" works exactly this way. CTRL+SPACE is buggy. It doesn't work properly and gives false tags.)
for end tags: "</" opens autocomplete window. select "body" writes to screen: "</body>". Additional sub values (alink=...) could be supressed. They are not needed for end tags as far as I know.
I now it is hard work. But this would significant raise usability of autocomplete for those who use it regularly. For me it would be a completion of that feature, but I don't use it regularly.
for start tags: "<" and CTRL+SPACE opens autocomplete window. select "body" writes to screen: "<body ". Now autocomplete window remains open so that you can use following sub values to complete your input: <body alink='#000000 (currently "<" works exactly this way. CTRL+SPACE is buggy. It doesn't work properly and gives false tags.)
for end tags: "</" opens autocomplete window. select "body" writes to screen: "</body>". Additional sub values (alink=...) could be supressed. They are not needed for end tags as far as I know.
I now it is hard work. But this would significant raise usability of autocomplete for those who use it regularly. For me it would be a completion of that feature, but I don't use it regularly.
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
1. Option "New File" is really good. A way better would be return of MDI. But it's alot of work, I think.
2. "Selection Commands": I like old menu more than new one. The old one was better with this small triangle to open submenu. I would leave "sort ascent" and "sort descent" directly in menubar, not into submenu.
3. pale icon "not RO": this is a good solution. so everyone knows where to click to enable RO. Is a new 16x16 icon too big? Do you need a smaller size?
4. autocomplete for </tags>: works really good. maybe you can add the missing ">" to the tag. But you have done a lot of work for autocomplete feature. It has already greatly improved in the last betas.
5. new toolbar themes: I like them. For me "aluminium" is better than "stripes", but both are nice. Now everyone can find his own style for his personal taste.

2. "Selection Commands": I like old menu more than new one. The old one was better with this small triangle to open submenu. I would leave "sort ascent" and "sort descent" directly in menubar, not into submenu.
3. pale icon "not RO": this is a good solution. so everyone knows where to click to enable RO. Is a new 16x16 icon too big? Do you need a smaller size?
4. autocomplete for </tags>: works really good. maybe you can add the missing ">" to the tag. But you have done a lot of work for autocomplete feature. It has already greatly improved in the last betas.
5. new toolbar themes: I like them. For me "aluminium" is better than "stripes", but both are nice. Now everyone can find his own style for his personal taste.