How can I break line in comment for HTML publication?

15 ビュー (過去 30 日間)
Dong-Gyu Jang
Dong-Gyu Jang 2015 年 1 月 1 日
回答済み: Kiera Kunde 2020 年 4 月 2 日
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 件のコメント
SMandev
SMandev 2016 年 7 月 11 日
I also wonder if this is possible. Anyone?

サインインしてコメントする。

回答 (3 件)

Shoaibur Rahman
Shoaibur Rahman 2015 年 1 月 1 日
%%Test section
After the break!
  3 件のコメント
Shoaibur Rahman
Shoaibur Rahman 2015 年 1 月 1 日
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 2019 年 10 月 8 日
編集済み: Brett Bussell 2019 年 10 月 8 日
2 spaces after the % symbols is the key to fix this!! Thanks!

サインインしてコメントする。


Mike Stein
Mike Stein 2018 年 3 月 30 日
How is this not possible????? THERE MUST BE AN ANSWER

Kiera Kunde
Kiera Kunde 2020 年 4 月 2 日
%{
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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by