-1
\$\begingroup\$

Task

Your task is to write a program that, taking no input, outputs a string that represents a formatted codegolf answer of itself. The pattern is the following:

[Language name][1], n bytes
=
```
source code
```
  [1]: link-to-language

With the language name being the language that you wrote your program (as stated in your interpreter no abbreviations such as JavaScript => JS), n bytes being the byte-count of your language, source code being the source code of your program (hence the quine tag) and link-to-language being a link to a resource about your language - whichever your online interpreter points to. Note that this is a real quine challenge, so answers cannot read their own source code.

\$\endgroup\$
  • \$\begingroup\$ Are all of the spaces required? \$\endgroup\$ – fireflame241 Jun 28 at 19:15
  • \$\begingroup\$ Not gonna swing my dupe hammer due to the different formatting of the markdown but: Related & Related \$\endgroup\$ – Shaggy Jun 28 at 19:21
  • 4
    \$\begingroup\$ Possible duplicate of Generate a Markdown Template for your Post \$\endgroup\$ – pppery Jun 28 at 20:11
  • 1
    \$\begingroup\$ Aside from being essentially duplicate, I don't find any novelty in this task over a regular quine, apart from the addition of some language-specific boilerplate. \$\endgroup\$ – Kirill L. Jun 28 at 20:16
  • \$\begingroup\$ What exactly is the link to the language? The brief description really leaves a lot unanswered, especially since getting a shorter link is a very good way to decrease byte count. \$\endgroup\$ – Ad Hoc Garf Hunter Jun 28 at 20:29
3
\$\begingroup\$

Python 2, 102 bytes

_='## [Python 2][1], 102 bytes\n```\n_=%r;print _%%_\n```\n  [1]: https://docs.python.org/2';print _%_
| improve this answer | |
\$\endgroup\$
  • 1
    \$\begingroup\$ Try it online!. Outputs exactly the source code of the post. Currently assumes that all of the spaces in the template are required. \$\endgroup\$ – fireflame241 Jun 28 at 19:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.