general question on format text and notification

1 次查看(过去 30 天)
Hi All
I have two questions
1- how to copy a code directly here on the text and format it that it 'd be readable , when I do it's like :
clc clear clear all load('input.txt') %load input load ('taget.txt')
2- i do not get notification when someone comments on an answer of my question

采纳的回答

Jan
Jan 2015-2-11
I really appreciate, that you ask about the formatting! Thousands of users do not care about this and their questions are not readable. You will find hundreds of threads in which the formatting is explained. In addition there are tutorials about this. Use the search function to find them.
  3 个评论
farzad
farzad 2015-2-11
That's very nice Image Analyst
thank you Simon , this is a great website , so useful, that might be just a small drawback, that might have solution in future , for who wants and doesnt want notifications
dpb
dpb 2015-2-11
"...Thousands of users do not care about this..."
I think it's no so much they don't care as they simply don't take the time and (imo rightly) expect a coding forum when they type or paste code for the input tool to not screw up the formatting they already had.
I've pointed out I don't know how many times that the default of using a word-wrapping, line-ignoring text prose tool for a coding forum is simply wrongheaded approach and is the underlying culprit, not the infrequent, casual or first-time user.

请先登录,再进行评论。

更多回答(2 个)

dpb
dpb 2015-2-10
编辑:dpb 2015-2-11
1) A) Highlight the code and press the {}Code button, or
B) insert 2 blank spaces at beginning of line.
If you do A) you'll observe it does B).
2) Dunno about that, I don't want notifications so never looked at options...

Image Analyst
Image Analyst 2015-2-10
  1. In MATLAB editor, type control-a, control-i to fix your code's indenting. Then copy it, and paste into the question box here. Highlight your code and click the {}Code icon and it should look correct in the preview window below your edit field.
  2. When you submit the question, at the bottom of the form there is a checkbox that says "Email me when answers are added to this question". Just don't uncheck it and you should be notified.

类别

Help CenterFile Exchange 中查找有关 Historical Contests 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by