2

I'm looking at the code inside snippet-javascript....js files, I can see I can hide as in the UI checkbox the snippet, sending hide var. but what I want is (if possible) to select to hide for example the css, but not the html. so in <!-- begin snippet: js on each <!-- language: lang-... is there anyway to hide selected parts of the snippet? couldn't find it in the source code... maybe is not possible, but maybe there is a non documented way... so I thought I will ask. the idea is that maybe you want to post a snippet but only show the html or the JS of it. (if you open the snippet editor you see everything)

edit: I'm asking more about the API itself, is it possible to do it now with a non documented way? (it would be great to have it in the sites too, but interested anyway if I can use it right now/asap)

note: I'm working on a power editor for Stack Overflow

Thanks

8
  • Yes, possible duplicate of that, but my question is about a feature request, but also maybe it is already implemented but not released in the sites... anyway I could use it using the api, so is the same concept but also asking about the internal API
    – UXDart
    Jun 14, 2017 at 20:42
  • This is a duplicate. The API can do less (generally) than the live site can. So, such a feature will never get implemented in the API until the live site has it first. ... Especially since the API is just setting markdown in this case -- which any site user could see and copy, if it worked. Jun 14, 2017 at 22:20
  • is just a tag, maybe there is a special param that hides it.. (?)
    – UXDart
    Jun 14, 2017 at 22:21
  • No, it is markdown, and always will be. And, if the duplicate feature request gets implemented, you will automatically be able to use it from the API. Jun 14, 2017 at 22:22
  • jej... with "tag" I meant an html tag... <!-- lang...
    – UXDart
    Jun 14, 2017 at 22:23
  • The "tag" you are referencing is just an HTML comment! It's effect in an SE post is part of SE's markdown syntax. Jun 14, 2017 at 22:25
  • I know... but I'm just asking if there is any part of that specific html tag that can cause it to hide... just that...
    – UXDart
    Jun 14, 2017 at 22:26
  • No. Hence the duplicate feature request. Jun 14, 2017 at 22:27

0

Browse other questions tagged .