How can I break line in comment for HTML publication?

조회 수: 9 (최근 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.

답변 (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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by