How can I break line in comment for HTML publication?

12 vues (au cours des 30 derniers jours)
Dong-Gyu Jang
Dong-Gyu Jang le 1 Jan 2015
Hello.
For example
%%Test section
% I want to have line break
% now.
But obviously the result is not what I want.
Please tell me how to do this.
and everyone happy new year and just have peace in your mind as long as possible.
  1 commentaire
SMandev
SMandev le 11 Juil 2016
I also wonder if this is possible. Anyone?

Connectez-vous pour commenter.

Réponses (3)

Shoaibur Rahman
Shoaibur Rahman le 1 Jan 2015
%%Test section
After the break!
  3 commentaires
Shoaibur Rahman
Shoaibur Rahman le 1 Jan 2015
You can use preformatted text or use two spaces after %
%%Test section
%
% My text. Break here, and go to next line.
% After the break!
Another way of doing this is to edit the .html file after publishing. Open the .html file (inside the html folder) using any text editor. Find the location where to break from, and place < br > command. Save, and open that in your browser.
Brett Bussell
Brett Bussell le 8 Oct 2019
Modifié(e) : Brett Bussell le 8 Oct 2019
2 spaces after the % symbols is the key to fix this!! Thanks!

Connectez-vous pour commenter.


Mike Stein
Mike Stein le 30 Mar 2018
How is this not possible????? THERE MUST BE AN ANSWER

Kiera Kunde
Kiera Kunde le 2 Avr 2020
%{
this is how you comment out multiple
lines in MATLAB
%}
the %{ and %} must be on their own line. For more information, this link will help: https://www.mathworks.com/help/matlab/matlab_prog/comments.html

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by