本文介绍了在Windows上将文本从编辑器复制到记事本是不清晰的(LF问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MFC应用程序,提供了用于显示的编辑器,我遇到了
问题当我键入文本并将文本从编辑器复制到记事本时,该文本难以辨认.

根据信息.行尾在Windows中为CRLF,在Unix中为LF,但是即使进行了必要的EOL更新,

E

I am using MFC Application, Editor provided for display, I have encountered the problem of
When I type text and copy text from editor to Notepad, the text is illegible.

As per Information. The End of Line is CRLF in windows and LF in Unix varaints, but, even though necessary EOL updations are made,

E

<sendmessage(sci_seteolmode,2,0);>



上面是scintilla编辑器(ScintillaWnd.cpp MFC包装程序)中提供的sendmessage,并且在MyViewClass中已进行了必要的更改以处理EOL模式,但错误仍然存​​在.

为什么要停止EOL<<<>>>会在记事本中模糊地解释,但不会在写字板或任何其他文档中解释.可以采取什么措施来避免这种情况.
请让我知道.



the above is sendmessage provided in scintilla editor(ScintillaWnd.cpp MFC wrapper), and necessary changes have been done in MyViewClass, for handling EOL mode, but still the error persists.

Why the EOL <<LF>> is interpreted in Notepad illegibly, but not in Wordpad or any other document. What can be done to circumvent the same.
Please let me know.

推荐答案


这篇关于在Windows上将文本从编辑器复制到记事本是不清晰的(LF问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 19:48