Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
2
votes
0
answers
59
views
Syntax highlighting doesn’t work on meta
When I enter
<!-- language-all: lang-bash -->
if :; then echo "quoted"; fi
in a post on main, the output looks like this:
Here on meta, the very same code gets no syntax highlighting at …
4
votes
What to do with <!-- language: bash --> edits?
I also came across edits of this type and treated them as follows:
Approve
if the edit actually improved the post by triggering correct syntax highlighting while it wasn't possible to just add a tag, …
5
votes
Presentation of code should include explanation in a separate comment section
My two cents to just those two points you raised:
users may mistakenly take in code comments as part of the provided solution
The syntax highlighting prevents that very well, for example:
#!/bin …