New Froala Editor v5.6.0 is here – Learn More
Froala Documentation
- Installation Guides
- Browser Support
- Languages Support
- Shortcuts
- Activation
- Examples
- Customize the Editor
- Use-cases
- Plugins
- APIs
- Development Frameworks
- Server Integrations
- Server SDKs
- Migration Guides
- Changelog
- Tutorials
- Froala Docs
- /
- Plugins
- /
- Code Beautifier Plugin
Code Beautifier Plugin
This plugin is fully functional during your trial period. Try it for free.
Beautifies the code inside the code view mode.
Plugin options:
| codeBeautifierOptions Object | Specify the options for Code Beautifier. Default: { end_with_newline: true, indent_inner_html: true, extra_liners: "['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre', 'ul', 'ol', 'table', 'dl']", brace_style: 'expand', indent_char: '\t', indent_size: 1, wrap_line_length: 0 } |
Add Plugin to your code:
Plugin name: codeBeautifier
Plugin JS Script: ../js/plugins/code_beautifier.min.js
Or from CDN https://cdn.jsdelivr.net/npm/froala-editor@latest/js/plugins/code_beautifier.min.js
Plugin CSS link: _
Example:
Whats on this page hide