I use Scintilla editor , and mapped the same into my MDI application,
here, I have used the wrapper for MFC readily available from Codeproject.
After mapping the scintilla editor, and setting the EOL etc.,
in ScintillaWnd.cpp
in ScintillaWnd.cpp @ Init()
<pre>...
//..notably.
SendMessage(SCI_SETEOLMODE,SC_EOL_CRLF,0);
SendMessage(SCI_CONVERTEOLS, SC_EOL_CRLF, 0);
//and also
SendMessage(SCI_SETPASTECONVERTENDINGS(bool convert),0,0);
....
....</pre>
and making changes in file Document.cxx(TransformLineEnds) and editor.cxx(both Scilexer), when the
line contains
LF
as EOL, the same being copied and pasted to Notepad
(Windows), gives characters which are Illegible(unreadible) due to presence of
LF
as EOL, but, the same copy paste on Notepad again would be correct, if
EOL forms
CRLF
Despite the changes in the above files, and following the documentation of scintilla for changes to be effected, I could not resolve the error. Hence, Please suggest the workaround for the same.
Information:
I am using VS2008 as development environment, and on WinXP SP3,
Need to change the EOL from <<LF>> to <<CRLF>> when text is copied from Editor to Notepad(Windows).
1. Necessary changes were made in document.cxx and editor.cxx for
ConvertLineEnds() to change? pls., explain, the workaround in above documents. to effect the proper EOL <<CRLF>> in Notepad.
2.Could we have proper handling of copy and paste as NotepadPlus editor to
detect the EOL setting on the fly.(ie., copy and paste from scintilla editor
to Notepad) should be without intervention of changes in Menu settings.
Please clarify?
Thanks in advance
[edit]Sorted out weird bracketing, so the message was readable rather than hidden - OriginalGriff.[/edit]