Beispiel #1
0
        /// <summary>
        /// Initializes the <see cref="CreateSettings"/> class.
        /// </summary>
        static CreateSettings()
        {
            ForJson = new SourceToHtmlSettings();
            ForJson.CssClasses.FirstTextLiteral = "srcJsonPropertyName";
            ForJson.CssClasses.TextLiteral      = "srcJsonPropertyValue";
            ForJson.TextLiteralResetChars       = new[] { '\r', '\n', '{', '}' };

            ForTypeScript.NumberSeparators = new[] { '_' }; // separator in TypeScript 2.7+
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SourceToHtml" /> class,
 /// using the specified settings
 /// </summary>
 /// <param name="settings">The settings.</param>
 public SourceToHtml(SourceToHtmlSettings settings)
 {
     Settings = settings;
 }