highlight.js icon indicating copy to clipboard operation
highlight.js copied to clipboard

Documentation is confusing

Open juliopx opened this issue 9 years ago • 2 comments

http://highlightjs.readthedocs.io/en/latest/api.html#highlight-name-value-ignore-illegals-continuation

Listed arguments don't match with the signature. It's very confusing and I have to read the code to understand what the arguments are.

Edit: I just realized I confused input arguments with return value. It should be more clear. I suggest putting the "Returns an object..." sentence in a separate paragraph, and naming the first argument "language" or "language_name", the second "html_string", etc.

juliopx avatar Jul 27 '17 15:07 juliopx

I'd settle for:

  • languageName
  • code

Would that not be clear?

joshgoebel avatar Oct 16 '19 14:10 joshgoebel

Ping.

joshgoebel avatar Oct 25 '19 05:10 joshgoebel