17

I agree that it's likely a low rep user, attempting to gain rep, which is fine. I would put this to you, is the edit worthwhile enough that it makes the Q or A better than it was before? If so then approve it, otherwise I'd reject it. IMO these are worthwhile edits, so I'd approve them as well, if that helps.


15

Editing could well be done by moderators, but there's only a few of us and there's a lot of other users that edit questions too. Editing is done to correct formatting issues that otherwise would potentially make a question (or answer) difficult to read, and sometimes we correct spelling mistakes and grammar, or we move clarifying information from comments ...


13

Code blocks delimited with ``` ("fences") were implemented just this January (see this meta post). Before that, three backticks was equivalent to one backtick, resulting in inline code formatting, as your screenshot shows. Even though the post had syntax that would be rendered differently now, that only happens when it's edited, this is also noted in the ...


13

Did you leave an empty line before the code? For example: Test line line 1 indented by four spaces line 2 indented by four spaces Test line 2 line 3 indented by four spaces line 4 indented by four spaces Shows up as: Test line line 1 indented by four spaces line 2 indented by four spaces Test line 2 line 3 indented by four ...


11

I updated that title. I did so because I honestly had difficulties reading it. My brain was doing A Full Stop After Each Word. I also changed "can" to "may", but this was purely based on personal opinion about how to express a question like this. In general, I would also edit SHOUTING and other attention grabbing typographical details that are ...


9

No, we shouldn't use title case in question titles. It hurts readability. Reading title case is unusual, so it's an immediate barrier to quick reading. Titles usually don't contain multiple sentences, but they often contain proper nouns, which title case causes makes it harder to spot. Title case is commonly used in print newspapers to make titles stand out ...


8

You can get syntax coloring for scripts by starting the code block with something like ```lang-sh. There's no syntax coloring that would detect prompts in a terminal session, and it would be difficult to make one due to the diversity of prompts. There's no way to use color except via syntax coloring for the supported languages. You can get bold and italics ...


8

Partly echoing Kusalananda's words, I would add a couple of remarks I hope can be of help. First, don't take edits personally. The Stack Exchange platform aims to be unique1: This design choice works well in producing both high quality content and initially puzzled users. Yes, your questions belong to you and, yes, answers should try to solve the issues ...


7

Well, first off, that user is not a new user having started with Stack Overflow 2 years ago. That said, I don't think there is any reason to avoid improvement via editing for posts from new users. In fact, there is a review queue for first posts from new users (link requires 500 rep). One of the things you're encouraged to do is edit posts to improve them. ...


7

It does seem like search just ignores code blocks; I can't find any mention of if this is intentional, it seems like an odd decision, and the meta thread about the new search engine implies that it should work: Quoted phrases are exact matches except for case-sensitivity, for example, you can search for code or symbols. There is a way to search ...


7

There's another syntax for code blocks which is mentioned in the advanced formatting help. Surround the code by three backticks on a line of their own. The backticks have to be on their own line but don't need a blank line. ``` #!/bin/sh echo Hello, world. ``` This is rendered as #!/bin/sh echo Hello, world. This syntax also makes it easy to request ...


6

I'll just mention a significant consequence of that here as I was just hit by it: Apparently, articles that were last edited before the transition are still rendered the old way, so you don't need to edit your posts to convert them to the new syntax, but, if you edit an old article, whether it's yours or someone else's, then it needs to be in the new syntax. ...


4

I don't know what happened to that formatting. I tested the exact same markup in the sandbox and it rendered ok. I then added a single newline to the answer text and saved it, which seems to have fixed it. I don't think it was the newline that I added that fixed it, but just the act of submitting it again. If I remember correctly, that was the way that ...


4

That’s not something I’ve noticed recently (and I think I’ve used question links in some of my recent answers...). One thing I have noticed is that questions are replaced by their title, whether the long or short URL is used: Is there ever a good reason to run sudo su? Is there ever a good reason to run sudo su? but answers aren’t (which sort of makes ...


3

Will this put everything below this in a <code> tag on the mobile site (and maybe also on the desktop site on some computers / browsers)? I think it did. (I deleted it because it messed up the sandbox, see edit history, Kusalananda)


3

Let me have a go code yes it works! I left a blank line before it. So the 'How to Format' should have told us about this!


2

As already noted, this is because the post was made before triple-backtick code blocks were supported, and hasn't been edited since support was added. A post's rendering is cached until the post is edited. If you'd like to flex your edit muscles, this query looks for posts that look like they contain triple-backtick that isn't rendered properly. The query ...


2

For your trivial examples, syntax highlighting looks mildly good because they have short strings in them highlighted as such. But for most text I have seen, blanket-wrapping all awk or sed code (especially those that are even mildly complex) as a string is useless. It might as well not be highlighted at all. Not only that, most of the actual text given as ...


1

The behavior you are seeing is a design feature: in Markdown you need a blank line to signal the and of a paragraph. Spaces or tabs at the beginning of a line are not enough to make it a different block from the preceding (non blank) line(s). This is documented both in Help Center > Our Model > How do I format my posts using Markdown or HTML? (briefly, ...


1

When I had low enough rep to still go through edit moderation, I was explained that such edits (also, fixing up bad tags, with no other changes to the text body) are frowned upon as they are too small to provide worth (unless it’s something like, making a program snippet legible at all by prepending four spaces to every line) and the moderators should not be ...


1

The user may have improved the post to some degree. But to what extent is up for debate; deciding what to do with edits which consist primarily of changes in formatting are a matter of balance between allowing small improvements through, and inviting a pile of tiny edits to constantly be suggested, stealing time away from the more important activities on the ...


1

Code block formatting test. code goes here Now this: more here From problematic answer: for example: ip,time,name,_random 1.1.1.1,2018-08-31 11:12:32,python,65536 1.1.1.1,2018-08-31 11:12:32,python,42 or ip,time,name,_seq 1.1.1.1,2018-08-31 11:12:32,python,1 1.1.1.1,2018-08-31 11:12:32,python,2 But, you can not use too many numbers for the same ...


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