通过查看Telegram 的“Markdown Syntax” Wiki 页面,创建粗体和斜体的文本应该相对容易。
在那里,它说
*this is in italic* and _so is this_
**this is in bold** and __so is this__
***this is bold and italic*** and ___so is this___
Run Code Online (Sandbox Code Playgroud)
结果是
这个是斜体的,这个也是
这是粗体的,这也是
这是粗体和斜体,这也是
.
但是使用
***this is bold and italic***
Run Code Online (Sandbox Code Playgroud)
结果是
*这是粗斜体*
和
___this is bold and italic___
Run Code Online (Sandbox Code Playgroud)
结果是
_这是粗斜体_
.
那就是:Telegram 的 markdown 解释肯定已经改变了。
在编写 Telegram bot 时,可以使用 HTML 代替 markdown,但我想简单地写一些粗体和斜体文本给我的朋友,同时定期与他们聊天。
使用此处使用的降价语法不起作用。我已经试过了。
嗨,我想将我的扩展升级到 Visual Studio 2017,但出现Microsoft.VisualStudio.Shell.RegistrationAttribute错误,但我已经添加了此参考?我在编译时遇到了此错误。是否有任何参考要添加或其他?对此有何评论?
D:\Visual Studio 2017\VSSDK\VisualStudioIntegration\Common\Assemblies\v4.0\Microsoft.VisualStudio.Shell.Immutable.10.0.dll ,version :10.0.0.0
Run Code Online (Sandbox Code Playgroud)
我的错误是
Severity Code Description Project File Line Suppression State
Error CreatePkgDef : error : ArgumentException: No Visual Studio registration attribute found in this assembly.
Severity Code Description Project File Line Suppression State
Error The assembly should contain an instance of the attribute 'Microsoft.VisualStudio.Shell.RegistrationAttribute' defined in assembly 'Microsoft.VisualStudio.Shell.Immutable.10.0' version '10.0.0.0'
Severity Code Description Project File Line Suppression State
Error at Microsoft.VisualStudio.Tools.CreatePkgDef.ProcessAssembly(String fileName, Hive hive, PkgDefContext context, Boolean register, RegistrationMode mode) …Run Code Online (Sandbox Code Playgroud) 我尝试使用 来阅读一些电子邮件javamail lib。当电子邮件包含 MIME 标头时(Content-Type: text/plain; charset="unknown-8bit"),我收到此错误:java.io.UnsupportedEncodingException: unknown-8bit
有什么想法为什么会发生这种情况吗?