SynWrite (Syn2)
Moderators: Hacker, petermad, Stefan2, white
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
If found words are marked (Find&Mark) and file is changed in background, then after reloading the search marks are shifted to other positions.
Same problem if you change encoding and select "reopen file in new encoding". If there are any changes or new spaces in front of search marks, then these marks changes position.
It can be manually fixed by selecting "clear search marks" and then "Find all". Before you have to assign a shortcut key to "Find all". I use CTRL+Shift+M for "Find all" and CTRL+Shift+C" for "Clear search marks". So I can enable/disable search marks quickly.
Same problem if you change encoding and select "reopen file in new encoding". If there are any changes or new spaces in front of search marks, then these marks changes position.
It can be manually fixed by selecting "clear search marks" and then "Find all". Before you have to assign a shortcut key to "Find all". I use CTRL+Shift+M for "Find all" and CTRL+Shift+C" for "Clear search marks". So I can enable/disable search marks quickly.
- 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
here is another issue with search marks:
find and mark a word. important: search word must only exist 1 time in document! the one hit should be marked now. now clear search marks. after that use "find all" to mark the word again. the mark is not visible now. open syn configuration dialog and search mark apears in background.
If hits for search words are greater than 1 then "clear search mark" and "find all" are working well.
find and mark a word. important: search word must only exist 1 time in document! the one hit should be marked now. now clear search marks. after that use "find all" to mark the word again. the mark is not visible now. open syn configuration dialog and search mark apears in background.
If hits for search words are greater than 1 then "clear search mark" and "find all" are working well.
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
send you mail
You can decide yourself. Better is to find/mark again. But if it is too complicated it is better to simply clear marks on reloading. I think working with search marks is rarely used. So everyone can mark search words again for himself.if I clear marks on reloading, will it be right? Or i need to find all/mark again?
can the syn2 auto check the character set of files
first of all,I'm sorry to make you look at below content,I'm weak in English
hmm,I'm a new user for tc,only one week,but I love it.
when I choose the character set as default,but my source file gibberish.
after open the file I can choose the utf-8 then it works well,but every time I open the new file I must do it again.
BTW:can I choose the character set utf-8 as default? where and which?
附上中文吧,说不定翻译过来后,你们能看得更明白,我的英文有三级了.
我的java源文件都是utf-8字符集的,在tc下我用F3查看是会出现乱码,但是打开后,在底部的字符集可以选择uft-8,这样以后文件显示就正常了,但是我再打开其他的java源文件又得重复这样做.但是我找不到哪里能设置默认字符集为utf-8的.
嗯,我装了syn2插件
懂中文的帮我翻一下哈.
hmm,I'm a new user for tc,only one week,but I love it.
when I choose the character set as default,but my source file gibberish.
after open the file I can choose the utf-8 then it works well,but every time I open the new file I must do it again.
BTW:can I choose the character set utf-8 as default? where and which?
附上中文吧,说不定翻译过来后,你们能看得更明白,我的英文有三级了.
我的java源文件都是utf-8字符集的,在tc下我用F3查看是会出现乱码,但是打开后,在底部的字符集可以选择uft-8,这样以后文件显示就正常了,但是我再打开其他的java源文件又得重复这样做.但是我找不到哪里能设置默认字符集为utf-8的.
嗯,我装了syn2插件
懂中文的帮我翻一下哈.
- Matthias030
- Senior Member
- Posts: 423
- Joined: 2007-03-04, 10:48 UTC
- Location: Berlin
- Clas Hortien
- Senior Member
- Posts: 200
- Joined: 2003-03-03, 15:03 UTC
Hi,
I have two questions:
How can I enable a lexer to react on the filename instead of the file extension ?
How can i choose a different lexer for the current file e.g. show it as a SQL File instead showing it as a textfile. In former releases I could change the used lexer by choosing a menu entry.
Many thanks
Clas
I have two questions:
How can I enable a lexer to react on the filename instead of the file extension ?
How can i choose a different lexer for the current file e.g. show it as a SQL File instead showing it as a textfile. In former releases I could change the used lexer by choosing a menu entry.
Many thanks
Clas
#14041
- Clas Hortien
- Senior Member
- Posts: 200
- Joined: 2003-03-03, 15:03 UTC
Many thanks.
1) Can I request this to be build in ? It would be very helpful, as I get many textfiles daily, all named differently (based on the application), but with the same endings (txt,log).
2) Super, I didn't see this. But why is the list not the same as the one in the lexer library configuration ? I have disabled many of the lexer (mostly programming languages), as I do not need them and it would be great if the list in the status line would be the same.
Best regards
Clas
1) Can I request this to be build in ? It would be very helpful, as I get many textfiles daily, all named differently (based on the application), but with the same endings (txt,log).
2) Super, I didn't see this. But why is the list not the same as the one in the lexer library configuration ? I have disabled many of the lexer (mostly programming languages), as I do not need them and it would be great if the list in the status line would be the same.
Best regards
Clas
#14041