How can I break line in comment for HTML publication?

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.

Answers (3)

%%Test section
After the break!

3 Comments

Thanks but your method will add one empty line and start to show text at next line.
Is there a way to just break a line and text is continued at next line?
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.
2 spaces after the % symbols is the key to fix this!! Thanks!

Sign in to comment.

How is this not possible????? THERE MUST BE AN ANSWER
%{
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

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Asked:

on 1 Jan 2015

Answered:

on 2 Apr 2020

Community Treasure Hunt

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

Start Hunting!