Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EverEdit复制文本为RTF时贴出来没有格式 #293

Open
BluYous opened this issue Dec 30, 2016 · 3 comments
Open

EverEdit复制文本为RTF时贴出来没有格式 #293

BluYous opened this issue Dec 30, 2016 · 3 comments

Comments

@BluYous
Copy link

BluYous commented Dec 30, 2016

请求新功能?

最近在使用EverEdit软件(类似Notepad++),发现在使用“复制文本为rtf”时粘贴到word里格式都还在,而贴出来的效果全没了,粘贴到记事本里依然是Snipaste贴出来的文本(带格式的,非源文本),请问大神能否解析一下此类数据?那再好不过了!

不知道怎么发图 直接上代码
附:
源代码(中文字体 微软雅黑;英文字体 Consolas)

class MyClass
{
	public static void main(String[] args) 
	{
		System.out.println("Hello World!");
	}
}

贴出来的文本

{\rtf1
{\fonttbl{\f0\fnil Consolas;}{\f1\fnil 微软雅黑;}}
{\colortbl ;\red0\green0\blue0;\red113\green122\blue179;\red113\green122\blue179;\red0\green0\blue255;\red0\green0\blue255;\red127\green0\blue85;\red63\green95\blue191;\red0\green128\blue128;\red0\green128\blue128;\red255\green0\blue0;\red0\green0\blue0;\red255\green128\blue0;\red0\green0\blue255;\red255\green0\blue128;\red127\green159\blue191;\red0\green128\blue128;\red127\green0\blue85;\red255\green0\blue0;\red64\green128\blue128;\red128\green128\blue0;\red255\green255\blue255;\red255\green255\blue255;\red0\green0\blue0;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue0;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green255\blue255;\red255\green0\blue0;\red255\green128\blue64;\red255\green255\blue128;\red0\green128\blue0;\red0\green0\blue255;\red128\green128\blue0;\red128\green0\blue64;\red0\green0\blue0;}
\f0\cf17\b class\b0 \cf1  MyClass\par
\cf1 \{\par
\cf1 \tab \cf17\b public\b0 \cf1  \cf17\b static\b0 \cf1  \cf17\b void\b0 \cf1  \cf13 main\cf1 (\cf18 String\cf1 [] args) \par
\cf1 \tab\{\par
\cf1 \tab\tab \cf18 System\cf1 .out.\cf13 println\cf1 (\cf4 "Hello World!"\cf1 );\par
\cf1 \tab\}\par
\cf1 \}}
@septs
Copy link
Contributor

septs commented Dec 30, 2016

目前 Snipaste 仅支持 纯文本HTML

see https://docs.snipaste.com/#/zh-cn/getting-started#什么时候可以贴图

@liulex
Copy link
Member

liulex commented Dec 30, 2016

不错的建议,以后会通过插件系统支持更多的格式转为图片~

@my522cn
Copy link

my522cn commented Jan 1, 2017

ee复制为rtf后实际复制的是rtf代码,粘贴到word,Outlook里rtf直接解析rtf的效果,不支持rtf的例如sp就不可以。我记得好像有ee插件可以输出为HTML,可以试下。

@septs septs added the plugin label Jan 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants