- AuthorPosts
- June 18, 2008 at 6:20 am #5918suli2921Member
I want to save all open files in LF Only (UNIX) return method. here’s my code:
For Each doc In editor.Documents
doc.encoding = eeEncodingUTF8
doc.UnicodeSignature = False
doc.newline = ?
Nextwhat’s the value for LF Only (UNIX)?
June 18, 2008 at 10:54 pm #5920Yutaka EmuraKeymastersuli2921 wrote:
I want to save all open files in LF Only (UNIX) return method. here’s my code:For Each doc In editor.Documents
doc.encoding = eeEncodingUTF8
doc.UnicodeSignature = False
doc.newline = ?
Nextwhat’s the value for LF Only (UNIX)?
You will need to use “Save Returns as LF only” command, so you will need to activate each document, and then use
editor.ExecuteCommandByID(4107);June 19, 2008 at 5:04 am #5924suli2921MemberThank you, this is very helpful.
For Each doc In editor.Documents
doc.encoding = eeEncodingUTF8
doc.UnicodeSignature = False
editor.ExecuteCommandByID 4107
NextJune 19, 2008 at 5:20 am #5925Yutaka EmuraKeymastersuli2921 wrote:
Thank you, this is very helpful.For Each doc In editor.Documents
doc.encoding = eeEncodingUTF8
doc.UnicodeSignature = False
editor.ExecuteCommandByID 4107
NextBut you have to activate each document first.
For Each doc In editor.Documents
doc.Activate
doc.encoding = eeEncodingUTF8
doc.UnicodeSignature = False
editor.ExecuteCommandByID 4107
Next
- AuthorPosts
- You must be logged in to reply to this topic.