@Override
    public String getPreparedText(int tabstopNumber) {
        final String escapedText = literalText.replace("\\", "\\\\").replace("$", "\\$");
        return escapedText;
    }
The literal text that makes up part of the snippet segment

@param literalText The literal text that makes up part of the snippet. This does not need to be escaped, escaping will be handled automatically.
stroom-core-client-widget/src/main/java/edu/ycp/cs/dh/acegwt/client/ace/AceCompletionSnippetSegmentLiteral.java