# Tag Info

## Hot answers tagged code-formatting

20

I've enabled this for users with <= 200 reputation. ...That said, don't expect too much. This will correctly detect large code dumps, but won't necessarily detect single-line expressions interspersed with prose as in your example. I've also enabled a check that enforces a code to non-code ratio (currently 4 characters non-code to each line of ...

14

From some time now I was consistently replacing such bracketed references with non-bracketed ones, because of the following reasons: Shorter is better; The Online Documentation uses function references without brackets; Brackets can be misleading (especially for newcomers), e.g. Dot[] in itself doesn't do anything. It might hint that Dot should use ...

8

When you need to post code with embedded back-ticks you can use double back-ticks to open and close. To include code with double back-ticks you can use triple back-ticks to open and close, etc. Examples: abc and 1.234, entered with abc and 1.234 respectively. When entering code with leading or trailing back-ticks add a space between the ...

6

No Markdown formatting works in question titles. Remember, these are displayed in many places where such formatting would just have to be stripped anyway; the added complexity just isn't worth it. Nothing prevents you from using backquotes to delimit code in titles if it suits you, but they won't affect how the title is rendered.

4

When you type your post, there's a (?) button at the top right corner of the edit box. Press this button for detailed formatting help. It will tell you that to format code nicely, you need to select it, then press the {} button from above the edit box to format it. (You can press Ctrl+K, or Command+K on a Mac, to achieve the same.) Alternatively you can ...

3

I cannot reproduce the problem you mention. Here's your question re-posted exactly as you wrote it, from a new user's account. https://mathematica.stackexchange.com/questions/133790/test-question-for-the-recent-meta-post The warning you mention was indeed enabled a few weeks ago. But it is not triggered by this text, at least when posting from an ...

2

I personally prefer not to see backquotes in titles. My dislike of them is so great that I can not hold myself back from removing them whenever I see them used. Inline MathJax can often be used in a title to get formatting reasonably similar to what Markdown would do in a question body. I would try to do it that way.

2

Information about formatting can be found on the editing-help page. The relevant section is the first one. I prefer Szabolcs answer though, as the Command + k trick seems to be missing in editing help.

1

I experimented with a couple of your MathJaX entries in our code editor. Here is as screen capture of how it looked. I also included a couple of comments on your MathJaX. both to inform you and to give the editor a fairly normal piece of work. Here is how the 2nd entry should be been posted. FullSimplify[ ComplexExpand[ Integrate[(π δ[ω] + 1/(I ω)) E^(...

Only top voted, non community-wiki answers of a minimum length are eligible