Export to GitHub

google-code-prettify - issue #365

Problem with backslash in VB


Posted on Jan 22, 2015 by Massive Horse

What steps will reproduce the problem? 1. Create <pre> element with some vb code and place a backslash within double quotes

Eg.

<pre name="code" class="prettyprint lang-vb"> Sub Test() Print "path\filename" End Sub </pre>

The backslash is treated as escape character so all the code next to the backslash is treated as string content, when it is not: string content must end with the last double quote at the end of the same line.

Attachments

Status: New