How can I break line in comment for HTML publication?
17 次查看(过去 30 天)
显示 更早的评论
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
2015-1-1
%%Test section
After the break!
3 个评论
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
2019-10-8
编辑:Brett Bussell
2019-10-8
2 spaces after the % symbols is the key to fix this!! Thanks!
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!