Prettify MATLAB html

Provides additional features when exporting .m files to html using MATLAB's "publish" feature

Télécharger
Télécharger

Vous suivez désormais cette soumission

Note de l’éditeur : This file was selected as MATLAB Central Pick of the Week

Citation pour cette source

Harry Dymond (2026). Prettify MATLAB html (https://fr.mathworks.com/matlabcentral/fileexchange/78059-prettify-matlab-html), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec les versions R2016b et ultérieures

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
6.9.0

Fixed bug in processing of page-internal links

Télécharger
6.8.0

-- Added support for UTF-8-encoded HTML files, as generated by newer versions of MATLAB
-- Changed how page-internal links (anchor links) function, to work around bug in help/doc browser in recent versions of MATLAB (2022a+)

Télécharger
6.7.0

-- Changed html implementation of [brx] tags for better cross-browser support
-- Updated documentation

Télécharger
6.6.0

Updated description

Télécharger
6.6.0-0

-- Improved error handling, including display of name of file being processed, if warnings and/or errors occur
-- Saves help of built-in publish so it can be displayed on command line when user runs "help publish", when publish is overloaded

Télécharger
6.5.0

Details boxes now open automatically if they are closed and the user clicks an internal page link that links to the box

Télécharger
6.4.1

Fixed bug that could occur when <tt> tags are replaced by <code> tags (HTML5 validation fix)

Télécharger
6.4.0

- Now allows negative values for the [brx] tag
- Fixed bug that could occur when using [h2.CElink] tags in conjunction with nested [dtls] sections.

Télécharger
6.2.0

Fixed bug when processing nested [class.<class name>] tags

Télécharger
6.1.0

Fixed bug when processing <style></style> tags in embedded html

Télécharger
6.0.0

- Fixed html 5 compliance issues, some due to the built-in publish, and some due to prettify
- Added [h2] and [h2.CElink] tags
- Enhanced functionality of floating "return" link - arrow direction now updates as user scrolls or resizes window

Télécharger
5.1.1

- Fixed upload issue

Télécharger
5.1.0

- Improved floating back button functionality when page is viewed on MATLAB Central
- More robust positioning of collapse/expand all links

Télécharger
5.0.1

Updated documentation to recommend that when creating in-page links to [dtls] boxes, the [targetn] tag should be placed immediately before the opening [dtls] tag.

Télécharger
5.0.0

- Adds a "return" floating button/link when user follows an in-page link (but not if page is viewed in MATLAB help browser)
- Other changes listed in .m file

Télécharger
4.5.0

If pages are viewed in the "Examples" tab on MATLAB Central:
- They have a scroll bar, so the [frameBufferx] tag is no longer required
- In-page links work in most browsers and jump to correct location (also applies to MATLAB help browser)

Télécharger
4.4.0

Now includes version number of prettify_MATLAB_html in the footer link

Télécharger
4.3.0

- No longer creates extra space after monospaced text (e.g. |text| ) that is wrapped in [class], [scale], or [colour] tags
- Added the [delsp] tag

Télécharger
4.2.0

- Fixed issue with collapse-all/expand-all links in help browser of recent versions of MATLAB
- Improved spacing after generated code output and lists that appear at the end of [dtls] boxes

Télécharger
4.1.0

- Improved syntax checking for [dtls] tags
- Improved handling of html in [dtls] boxes (also fixes potential bug when nesting [dtls] boxes)

Télécharger
4.0.0

- Enables nesting of [dtls] boxes
- [dtls] boxes are now rounded on all four corners when closed
- Improved syntax checking for [/dtls] tags
- Other changes listed at end of .m file

Télécharger
3.14.0

- Improved error handling
- Fixed bug that occured when any [dtls] sections were placed before MATLAB's auto-generated page contents list

Télécharger
3.11.0

Better handling of malformed syntax in the source .m file

Télécharger
3.10.0

Fixed bug associated with [frameBufferx] tag

Télécharger
3.9.1

Minor documentation tweaks

Télécharger
3.9.0

Added [frameBufferx] tag to work around issue of MATLAB central miscalculating height of document

Télécharger
3.8.0

Fixed bug with "collapse/expand all" controls for pages with ten or more sections

Télécharger
3.7.1

Minor code tidy

Télécharger
3.7.0

- Added "built-in" publish CSS classes (see end of .m file for list) as valid when using the [class.class-name] tag (but these won't be in the pop-up list when the "class" Toolbar button is pressed.)
- Handles some incorrect syntax more gracefully

Télécharger
3.6.0

- Fixed bug when multiple images appear inside [dtls] sections
- Added Toolbar button to insert an html-table template

Télécharger
3.5.0

- Improved enclosing of inline html into [dtls] sections (again)
- Improved handling of nested of [colour#], [scalex], [class.class-name] tags

Télécharger
3.4.0

- Fixed bug with "collapse/expand all on page" link when page has no sections
- Documentation fix

Télécharger
3.3.0

- Added support for nesting of css classes e.g. [class.a][class.b]this item will be formatted according to css classes a and b[/class][/class]
- Increased robustness of enclosing inline html in [dtls] sections

Télécharger
3.2.0

- Improved method of assigning classes and styles

Télécharger
3.1.0

- Added workaround for MATLAB central miscalculating page height

Télécharger
3.0.0

- Added support for new tags: [cssClasses], [class.class-name], [scalex], [colour#], [themesEnabled], and [darkAlt]
- Added dark theme
- Improved handling of Toolbar buttons
- Other minor changes; see end of .m file for more information

Télécharger
2.0.0

- Added method for adding shortcuts to Quick-Access Toolbar, that then allow easy adding of tags to source .m file
- Other minor tweaks and bug fixes (see end of .m file for more info)

Télécharger
1.1.0

- Improved method of closing [dtls] sections
- Better handling of consecutive [/dtls][dtls] tags

Télécharger
1.0.0

First release

Télécharger
0.0.0

Télécharger