File Exchange Pick of the Week

Our best user submissions

Prettify MATLAB HTML

Jiro's Pick this week is Prettify MATLAB html by Harry Dymond.

By now, many of you are probably aware of Live Scripts for creating shareable (and interactive) document. Before Live Scripts, you could publish your MATLAB code to share with others. You use special mark-ups in the code comments to format your text. In general, we recommend Live Scripts, as it has the same capabilities and many more compared to publishing, such as adding Live Editor Tasks and Interactive Controls.

Those of you who are using .m MATLAB code files, I highly recommend you take a look at this entry by Harry. It includes a number of useful markups that you can include in your published HTML file. Harry includes a very comprehensive help file, so I encourage you to read through it to learn about all the features. That help file itself was also created with this entry.

Here are a few of the key features I really like:

  • Ability to add toolbar buttons (shortcut) to make it easy to add markup tags
  • Collapsible sections
  • Internal links to jump to different sections within the document. This is possible with Live Scripts, but not with the standard publish function
  • Simple markup for changing font size, color, and defining custom CSS classes

Comments

Give it a try and let us know what you think here or leave a comment for Harry.




Published with MATLAB® R2020a

|
  • print

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。