Following on from various Meta posts about code snippets being misused (like this one and this other one), a few days ago the Code Snippet WYSIWYG button's title
was changed from "Code snippet" to "JavaScript snippet":
The problem is that it isn't only used for JavaScript code. Myself and many others use the code snippet functionality a lot when answering HTML and CSS questions which feature no JavaScript at all. The phrase JavaScript snippet simply doesn't work in those cases.
Perhaps this should be renamed to "HTML/CSS/JavaScript snippet" or "Website code snippet" instead - something which doesn't make it sound like its only use is for JavaScript code.
In answers, perhaps the button could be hidden completely when the question isn't tagged with html, css or javascript, as well as jquery, d3, knockout.js or angularjs which are options within the code snippet interface.
* {
transition: 0.5s;
}
html, body {
height: 100%;
margin: 0;
}
body {
font-size: 108px;
text-align: center;
}
body:hover {
background: black;
}
body:hover span {
color: white;
}
<span>☹</span>
Insert self-contained runnable working client side website code snippet
Web snippet (but not for languages like PHP)
C
,C++
,Java
andPython
would go a long way.runnable
then have a<select>
tag for each code block's language?