I found a bug today in Stack Exchange's Code Snippet. Kindly check this. While inserting code snippet, this happens:
Please try to solve this.
Note: I am not exactly sure how to recreate. It just happened. I happened to see few just recently. I will surely explain, if I get a chance to replicate.
Reference Post: https://stackoverflow.com/a/34615823/462627
1 Answer 1
test code block
test code snippet
seems to work fine for me. However, I can forcibly recreate the issue by indenting the begin snippet comment and removing the end snippet comment.
test code block
<!-- begin snippet: js hide: false -->
test code snippet
I wouldn't call this a bug, just incorrect usage of the code snippet tool. There's really nothing to fix.
-
Oh yeah.. How did you even do this? I didn't do the indenting the begin snippet comment and removing the end snippet comment.Praveen Kumar Purushothaman– Praveen Kumar Purushothaman2016年01月05日 16:26:35 +00:00Commented Jan 5, 2016 at 16:26
-
I indented the begin snippet comment so it would be considered as part of the first code block, then removed the end snippet comment so that the snippet code wouldn't recognize it as a code snippet.Kevin B– Kevin B2016年01月05日 16:27:14 +00:00Commented Jan 5, 2016 at 16:27
-
I didn't do the indenting the begin snippet comment and removing the end snippet comment.Praveen Kumar Purushothaman– Praveen Kumar Purushothaman2016年01月05日 16:27:36 +00:00Commented Jan 5, 2016 at 16:27
-
the snippet tool doesn't do that either. The code block tool would do the indentation, but it wouldn't remove the end snippet comment.Kevin B– Kevin B2016年01月05日 16:28:21 +00:00Commented Jan 5, 2016 at 16:28
<!-- begin snippet: js hide: false -->
is indented, thus making it part of the css code block.