Skip to content

Instantly share code, notes, and snippets.

@gummiforweb
Last active July 28, 2017 05:01
Show Gist options
  • Save gummiforweb/481a287eda0af72a117fe6c564632a0e to your computer and use it in GitHub Desktop.
Save gummiforweb/481a287eda0af72a117fe6c564632a0e to your computer and use it in GitHub Desktop.
HTMLPrettify Sample
{
"html": {
"allowed_file_extensions": ["php", "htm", "html", "xhtml", "shtml", "xml", "svg"],
"max_preserve_newlines" : 1
}
}
<section class="site-banner page-banner paper-edge-top paper-edge-bottom">
<div class="container">
<div class="flex-grid grid-center grid-middle banner-grid">
<div class="is-12 content-col">
<div class="banner-header">
<h1 class="banner-title"><?php echo banner('banner_title'); ?></h1>
</div>
<?php echo banner('banner_content'); ?>
</div>
</div>
</div>
<div class="banner-background" ></div>
</section>
Node.js encountered a runtime error: Unhandled promise rejection TypeError: Cannot read property 'disallowed_file_patterns' of undefined
at isDisallowedFilePattern (C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\build\js-transpiled\utils\fileUtils.js:38:80)
at isCSS (C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\build\js-transpiled\utils\fileUtils.js:135:7)
at _callee$ (C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\build\js-transpiled\main.js:85:38)
at tryCatch (C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\build\js-transpiled\node_modules\regenerator-runtime\runtime.js:65:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\build\js-transpiled\node_modules\regenerator-runtime\runtime.js:303:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\build\js-transpiled\node_modules\regenerator-runtime\runtime.js:117:21)
at step (C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\build\js-transpiled\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
at C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\build\js-transpiled\node_modules\babel-runtime\helpers\asyncToGenerator.js:28:13
### HTMLPrettify diagnostics begin ###
[HTMLPrettify] Using editor text temp file: True
[HTMLPrettify] Global file rules: {"html": {"allowed_file_extensions": ["php", "htm", "html", "xhtml", "shtml", "xml", "svg"]}}
[HTMLPrettify] Respecting .editorconfig files: True
[HTMLPrettify] Editor file syntax: Packages/PHP/PHP.sublime-syntax
[HTMLPrettify] Editor indent size: ?
[HTMLPrettify] Editor indent with tabs: ?
[HTMLPrettify] Editor text file path: C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\12bb8f25-4fed-4dce-9a7a-221a1f2c1b2b
[HTMLPrettify] Editor text file contents: null
[HTMLPrettify] Original file path: C:\Users\Gummi\Desktop\Test\file.php
[HTMLPrettify] Config extra lookup paths: C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\User,C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify
[HTMLPrettify] Computed extra lookup paths for .jsbeautifyrc: ["C:\\Users\\Gummi\\Desktop\\Test","C:\\Users\\Gummi\\Desktop","C:\\Users\\Gummi","C:\\Users","C:","C:\\Users\\Gummi","C:\\Users\\Gummi\\AppData\\Roaming\\Sublime Text 3\\Packages\\User","C:\\Users\\Gummi\\AppData\\Roaming\\Sublime Text 3\\Packages\\HTML-CSS-JS Prettify"]
[HTMLPrettify] Attempting to parse file: C:\Users\Gummi\AppData\Roaming\Sublime Text 3\Packages\HTML-CSS-JS Prettify\.jsbeautifyrc.defaults.json
[HTMLPrettify] Attempting to parse file: C:\Users\Gummi\Desktop\Test\.jsbeautifyrc
[HTMLPrettify] Computed prettify options: {"html":{"end_with_newline":false,"eol":"\n","indent_level":0,"indent_char":" ","indent_size":4,"indent_with_tabs":false,"max_preserve_newlines":1,"preserve_newlines":true,"wrap_line_length":0,"indent_handlebars":false,"indent_inner_html":false,"indent_scripts":"keep","unformatted":["a","span","img","code","pre","sub","sup","em","strong","b","i","u","strike","big","small","pre","h1","h2","h3","h4","h5","h6"],"allowed_file_extensions":["php","htm","html","xhtml","shtml","xml","svg"],"css":{"newline_between_rules":true,"selector_separator":" ","selector_separator_newline":true},"js":{"brace_style":"collapse-preserve-inline","break_chained_methods":false,"comma_first":false,"e4x":false,"jslint_happy":false,"keep_array_indentation":false,"keep_function_indentation":false,"operator_position":"before-newline","space_after_anon_function":false,"space_before_conditional":true,"space_in_empty_paren":false,"space_in_paren":false,"unescape_strings":false}},"css":{"end_with_newline":false,"eol":"\n","indent_level":0,"indent_char":" ","indent_size":4,"indent_with_tabs":false,"max_preserve_newlines":0,"preserve_newlines":true,"wrap_line_length":0,"newline_between_rules":true,"selector_separator":" ","selector_separator_newline":true},"js":{"end_with_newline":false,"eol":"\n","indent_level":0,"indent_char":" ","indent_size":4,"indent_with_tabs":false,"max_preserve_newlines":0,"preserve_newlines":true,"wrap_line_length":0,"brace_style":"collapse-preserve-inline","break_chained_methods":false,"comma_first":false,"e4x":false,"jslint_happy":false,"keep_array_indentation":false,"keep_function_indentation":false,"operator_position":"before-newline","space_after_anon_function":false,"space_before_conditional":true,"space_in_empty_paren":false,"space_in_paren":false,"unescape_strings":false},"json":{"end_with_newline":false,"eol":"\n","indent_level":0,"indent_char":" ","indent_size":4,"indent_with_tabs":false,"max_preserve_newlines":0,"preserve_newlines":true,"wrap_line_length":0,"brace_style":"expand","keep_array_indentation":false,"unescape_strings":false}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment