We need to support a CSS compiler - Sass and Less. If CSS compilers are not supported on Stack Overflow code snippet which must be included. If it can't be supported in stack code snippets, allow users to include jsFiddle links.
-
6You are allowed to use JSFiddle links for such things, but you must also include all code from your JSFiddle in the question itself, in regular code blocks.– user247702Nov 18, 2016 at 12:16
-
Ok, Thats good, Needs to refer this as a message along with the error while posting a question with a jsFiddle Link will be more good. :)– aspNov 18, 2016 at 12:29
-
It should give you an error message like this one, does it not appear for you?– user247702Nov 18, 2016 at 12:38
-
2Don't know Sass, but Less has a client-side solution: Is it possible to inline LESS stylesheets?, which could theoretically work in snippets.– Heretic MonkeyNov 18, 2016 at 14:45
-
Not only CSS transpilers like Sass and Less must be added but also JS transpilers for Typescript, Babel, Coffeescript and HTML transpilers for Pug and Markdown.– H. PauwelynMar 25, 2017 at 12:15
-
@MikeMcCaughan Sass is a server-side solution.– H. PauwelynMar 25, 2017 at 12:17
-
3My favorite thing about preprocessors and other languages that compile to HTML/CSS is how dependent authors have become on them. I'm glad I don't use any of them.– BoltClockJul 2, 2017 at 4:36
1 Answer
The code snippets feature doesn't work for >80% of the code posted on Stack Overlow. Why make the extra effort for the ~15,000 less and sass questions? Are web developers that special?
In fact, if your SASS or LESS snippet cannot be trivially converted to plain CSS then it's a good chance it's not really a MCVE and should probably be trimmed. It's also trivial to convert it yourself. Both LESS and SASS come with easy to use commandline tools and many online tools.
While I don't necessarily disagree that it would be a useful feature as such, the effort to benefit ratio is quite low. It's simply not worth the effort IMHO.
-
5
-
2If the reason for creating StackOverflow snippets was to remove the need to add links to JSFiddle, then why not also implement this feature of JSFiddle? Apr 18, 2018 at 0:11