Thundergnat
Joined 24 August 2022
m
→Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting
Thundergnat (talk | contribs) m (→Utilities I Wrote:: Updated syntax highlighting applet to work with new Pygments highlighting.) |
Thundergnat (talk | contribs) m (→Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 9:
I would appreciate that any use includes a link back to the Rosettacode page from which it was obtained (but obviously would have no way to enforce that.)
==Syntax highlighting and CSS guide==
;* [[User:Thundergnat/Syntax_highlighting_and_CSS|Short guide to Rosetta Code syntax highlighting and CSS customization that I wrote]]
Line 24 ⟶ 28:
'''[https://www.tampermonkey.net/ Tampermonkey]''' or '''[https://www.greasespot.net/ Greasemonkey]''' javascript applets
;* [https://gist.github.com/thundergnat/c5a86a6d5e0018ac67bdea3fc48786a0#file-language_links-user-js Add language parameters to Category task entry links] - See [[Rosetta_Code:Village_Pump/Add_link_anchors_to_Language_Category_pages|this Village Pump page]] for details. Presently @ version 0.
;* [https://gist.github.com/thundergnat/5f7f36dc0cf303b110f6d7c6275fbb85#file-toggle_syntax_highlighting-user-js Syntax highlighting toggle] Toggle the task syntax highlighting off and on. Presently @ version 0.2 (2022/08/22)
Line 48 ⟶ 52:
* Average percent non-alpha-numerics - What percentage of the non-white space characters are not alphabetic or numeric? (Punctuation, symbols, etc)
* Average percent non-ASCII - What percentage of the non-white space characters are not ASCII characters?
* Syntax highlighting - What syntax highlighter does it use in order from most to least common
{|class="wikitable sortable"
|+ As of 2022-
!Language!!Task<br>Count!!Avg. #<br>Lines / Entry!!Avg. #<br>Characters!!Avg. %<br>White space!!Avg. %<br>Alphanumerics!!Avg. %Non<br>Alphanumerics!!Avg. %<br>Non-ASCII!!Syntax<br>highlighting
|-
||Wren||
|-
||Phix||
|-
||Julia||
|-
||Raku||
|-
||Go||1497||76||
|-
||Perl||
|-
||
|-
||
|-
||J||
|-
||C||
|-
||Mathematica||1177||
|-
||REXX||1146||
|-
||
|-
||
|-
||Kotlin||1132||47||1365||33.21 %||77.61 %||22.39 %||0.03 %||scala(1110) kotlin
|-
||C++||
|-
||Ruby||1103||32||832||26.
|-
||Racket||
|-
||FreeBASIC||
|-
||zkl||1011||19||688||17.98 %||69.69 %||30.31 %||0.03 %||zkl
|-
||Sidef||1003||22||545||30.82 %||70.
|}
<div style="padding:1em;background:#eeeeff;"><h3>Older commentary</h3>
|