Borrar filtros
Borrar filtros

general question on format text and notification

1 visualización (últimos 30 días)
farzad
farzad el 10 de Feb. de 2015
Comentada: dpb el 11 de Feb. de 2015
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

Respuesta aceptada

Jan
Jan el 11 de Feb. de 2015
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 comentarios
farzad
farzad el 11 de Feb. de 2015
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 el 11 de Feb. de 2015
"...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.

Iniciar sesión para comentar.

Más respuestas (2)

dpb
dpb el 10 de Feb. de 2015
Editada: dpb el 11 de Feb. de 2015
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 el 10 de Feb. de 2015
  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.
  2 comentarios
farzad
farzad el 10 de Feb. de 2015
that does work only for answer notifications not for comments
Image Analyst
Image Analyst el 10 de Feb. de 2015
I can't help you then - that's a Mathworks issue.

Iniciar sesión para comentar.

Categorías

Más información sobre Historical Contests en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by