User talk:Showell: Difference between revisions
Content added Content deleted
(lang tag for CoffeeScript) |
(I see) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
==Lang tag== |
==Lang tag== |
||
I think that when you add |
I think that when you add CoffeeScript programs, you should write |
||
<pre><lang coffeescript>...</lang></pre> |
<pre><lang coffeescript>...</lang></pre> |
||
(or the like) rather than |
(or the like) rather than |
||
Line 9: | Line 9: | ||
[[User:CRGreathouse|CRGreathouse]] 05:10, 29 March 2012 (UTC) |
[[User:CRGreathouse|CRGreathouse]] 05:10, 29 March 2012 (UTC) |
||
I've always done that. Do you have a specific example in mind where I forgot to do this? --[[User:Showell|Showell]] 05:18, 29 March 2012 (UTC) |
|||
: Hmm. I had checked a page, but I don't recall which. Let me look at some others. |
|||
: Ah, I see. I had noticed a spike of CS occurrences being pulled up by [[Rosetta Code/Find bare lang tags]] over the last 6 months or so, pulled one up, and saw that it had a blank tag; since from your contributions you're a major contributor to CS I figured that was what was probably going on in general. |
|||
: But it looks like what's usually going on is that you mark examples with <nowiki><lang></nowiki> rather than <nowiki><pre></nowiki>. That sort of made CoffeeScript jump up almost to the top of the "bad lang tags" list from the above task, thus my curiosity. |
|||
: [[User:CRGreathouse|CRGreathouse]] 22:58, 29 March 2012 (UTC) |
Latest revision as of 22:58, 29 March 2012
Lang tag
I think that when you add CoffeeScript programs, you should write
<lang coffeescript>...</lang>
(or the like) rather than
<lang>...</lang>
so that if someone eventually writes a syntax highlighting file for it all of the code will be highlighted. (It probably wouldn't take long to port the JavaScript file to CS.)
What do you think?
CRGreathouse 05:10, 29 March 2012 (UTC)
I've always done that. Do you have a specific example in mind where I forgot to do this? --Showell 05:18, 29 March 2012 (UTC)
- Hmm. I had checked a page, but I don't recall which. Let me look at some others.
- Ah, I see. I had noticed a spike of CS occurrences being pulled up by Rosetta Code/Find bare lang tags over the last 6 months or so, pulled one up, and saw that it had a blank tag; since from your contributions you're a major contributor to CS I figured that was what was probably going on in general.
- But it looks like what's usually going on is that you mark examples with <lang> rather than <pre>. That sort of made CoffeeScript jump up almost to the top of the "bad lang tags" list from the above task, thus my curiosity.
- CRGreathouse 22:58, 29 March 2012 (UTC)