1

Visual Basic 脚本 (VBScript) 的单一代码注释似乎不起作用,我正在使用 Google-code-prettify

https://code.google.com/p/google-code-prettify/

有关更多详细信息,请参阅此小提琴:

http://jsfiddle.net/dekajp/27skU/1/

    <div>
     <pre class="prettyprint lang-vb">
        ' Variable Declaration 

        Dim szToken
        Dim oXMLHTTP
        Dim szBaseUri, szUri

        szToken  ="Please see Logon code example for how to obtain a Token"

        ' set the base URI path
 </pre>
</div>

看起来单引号注释不起作用还是我遗漏了什么?

4

2 回答 2

1

I'm not familiar with the tool. I am familiar with VB and VB.net you're using but see if this syntax works better for you. AHH... also... you can't use ' unless you're using straight VB programming. You must exit your ' with an addition ' at the end. Looking at Fiddle... all your Declarations and szToken were all highlighted as comments.

 <div>
 <pre class="prettyprint lang-vb">
    <!--Variable Declaration-->

    Dim szToken as String
    Dim oXMLHTTP
    Dim szBaseUri, szUri

    szToken.text  = ("Please see Logon code example for how to obtain a Token")

    <!--set the base URI path-->
</pre>
</div>
于 2014-03-05T16:37:54.337 回答
0

我也有类似的情况。我删除了 run-prettify.js 脚本并添加了 prettify.js + lang-vb.js,它有所帮助。它仍然不完美,所以我正在研究如何修改它,但是。评论效果很好。

于 2016-04-11T13:57:37.493 回答