Add a New Comment (Rich Markup)
Thanks for the explanation. Seems to me this is very much a good-to-have. The one-liner will probably break most style guide as the line of code would be too long (including the magnet link etc.)
A single line would look like this: /* @license magnet:... / alert('one line'); / @license-end */
Perhaps this fixes the issue? https://git.savannah.gnu.org/cgit/librejs.git/commit/?id=3dafc83753fbabc8d80540e05cf1e374ae73f4fa It will be included in the next release.
> it would be great if it were possible to use '/*' and '*/' so scripts can be condensed to live on a single line if need be.
I don't quite understand this bit. If you have a script like /* @license magnet:?xt=urn:btih:5ac446d35272cc2e4e85e4325b146d0b7ca8f50c&dn=unlicense.txt Unlicense */ ... /* @license-end */ How do you condense it to a single line?
It is currently possible to use '//' at the beginning of a license comment in a script tag. it would be great if it were possible to use '/*' and '*/' so scripts can be condensed to live on a single line if need be. this would help make it easier to share code that is copy and paste-able between sites using a single line of code. thanks! : )
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 3 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11