简体   繁体   English

如何从电子邮件中复制 html、css、Javascript 代码

[英]How do I copy html, css, Javascript code from email

I am trying to copy code from an email into aa Web page file.我正在尝试将电子邮件中的代码复制到网页文件中。 I would like the file to have functionality.我希望该文件具有功能。
I tried copying it directly into a new Sublime file but the colors did not appear as if I had typed it in. When I right clicked background, no open in browser option appeared.我尝试将它直接复制到一个新的 Sublime 文件中,但颜色并没有像我输入的那样显示。当我右键单击背景时,没有出现在浏览器中打开的选项。 I am experimenting with code snippets in blogs and having problems pasting code with functionality in tact.我正在尝试使用博客中的代码片段,但在粘贴具有功能的代码时遇到了问题。 Is this an extension omission ?这是扩展遗漏吗? Thanks谢谢

Sublime will copy plain text, a wysiwyg html editor will copy the markup. Sublime 将复制纯文本,所见即所得的 html 编辑器将复制标记。 If you want to get the markup, do 'show original' (gmail) or whatever your client has as an equivalent.如果您想获得标记,请执行“显示原件”(gmail)或您的客户所拥有的任何等效项。 The original will have the markup and can be copied into Sublime.原件将带有标记,可以复制到 Sublime 中。 Hope that helps.希望有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM