Thundergnat

Joined 24 August 2022
m
→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting
m (Add link to CSS guide)
m (→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting)
 
(One intermediate revision by the same user not shown)
Line 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.78 (20212023/0601/1622)
;* [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 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.; the highlighting specifier with how many times it was seen (in parenthesis). Note that some variation is expected, especially for tasks like [[Call a foreign-language function]], [[Rosetta Code/Find bare lang tags]] or probably the largest source of oddball <nowiki><lang *></nowiki>markup tags: [[Rosetta Code/Fix_code_tags]].) In general, Pygments expects the lexer name to be all lower case.
 
{|class="wikitable sortable"
|+ As of 2022-0809-1411
!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||15611571||57||16481646||31.5654 %||75.8386 %||24.1714 %||0.09 %||ecmascript(1638) c(65) go(14) javascript(8) C foopython(2) xml(2) barAutoHotkey(1) bash(1) bazperl(1) pythontext(1)
|-
||Phix||15591570||55||17911782||32.769 %||78.2527 %||21.7573 %||0.04 %||phix(1922) Phix c csharp(7) javascript r(1)
|-
||Julia||15301538||34||10091011||27.9391 %||77.1721 %||22.8379 %||0.27 %||julia(1817) text(4) Julia(3) ruby(3) html5 python(2) cpp(1) html(1) lua(1) xml(1)
|-
||Raku||15071518||30||895||28.8578 %||69.3135 %||30.6965 %||0.59 %||perl6raku(1958) text(7) bash C(4) c(4) xml(2) html(1) rust(1) shell XML xml(1)
|-
||Go||1497||76||18081809||34.5756 %||75.23 %||24.77 %||0.1 %||go Go(1924) html(5) text(3) bash(2) c(2) xml(2) ecmascript(1) futurebasic(1) html5(1) proto(1) thrift(1)
|-
||Perl||14671473||34||924925||27.0302 %||68.1417 %||31.8683 %||0.1 %||perl(2047) Perltext(12) bash(5) Shellshell(2) c(1) html5(1) latex(1) Perl(1)
|-
||NimPython||14021406||4872||13242017||2430.6684 %||75.5356 %||24.4744 %||10.1204 %||Nim nim python(2669) Pythontext(13) bash(5) rubyhtml5(5) c(2) Ccmd(2) $python3(2) AutoHotkey(1) Nimrodebnf(1) perl(1) Python(1) qb64(1) shell(1) xml(1)
|-
||PythonNim||13941402||7248||20231332||3024.8664 %||75.52 %||24.48 %||01.0412 %||pythonnim(1599) Pythontext(10) bash html5python(8) c(4) cmd python3 ebnfNim(3) QB64ruby(3) Shellnimrod(1) xml(1)
|-
||J||12671275||2728||758780||26.9593 %||69.6273 %||30.3827 %||6.6353 %||j(2986) text(48) J(11) bash sh %s C(7) c(4) foo bar bazsh(4) bnf(1) html5(1) make(1) python(1) SNUSPsnusp(1) xml(1)
|-
||C||12141215||79||18631873||28.7476 %||72.5662 %||27.4438 %||0.01 %||c(1656) Ctext(48) cpp(11) bash(6) C(2) xml(2) XMLassembly(1) Assemblycafe(1) d(1) go(1) html5(1) make(1) perl(1) sh(1) Shellshell(1)
|-
||Mathematica||1177||1112||410422||17.4356 %||70.8977 %||29.1123 %||0.04 %||Mathematica mathematica(1485) footext(35) WolframMathematica(8) Languagewolfram "~~language(2) x~~" bar barfmathematica baz(1) sh(1)
|-
||REXX||1146||5556||33553373||40.3233 %||68.4447 %||31.5653 %||8.4745 %||rexx(1766) REXX Rexxtext(11) cobol(1) sh(1)
|-
||JavaHaskell||11371138||6645||20711355||3328.5434 %||7876.5684 %||2123.4416 %||0.0108 %||javahaskell(2089) java5text(7) Javabash(3) Java5Haskell(3) c bash(1) html5(1) xml foo make bar cmd java 12 java8 Java8 python shellsh(1)
|-
||HaskellJava||11351138||4566||13512077||2833.3452 %||7678.8656 %||2321.1444 %||0.0801 %||haskelljava(1273) Haskelljava5(223) bashtext(6) c(4) bash(3) html5(3) shxml(3) textJava(2) java8(2) make(2) cmd(1) java 12(1) python(1) shell(1)
|-
||Kotlin||1132||47||1365||33.21 %||77.61 %||22.39 %||0.03 %||scala(1110) kotlin Kotlin C(61) c Groovy(4) groovy(2) html5(2) HTML5scheme(2) java Scheme scheme(1) xml(1)
|-
||C++||11121115||73||19711973||29.2827 %||72.771 %||27.329 %||0.02 %||cpp(1511) Cpp Cc++(14) c(8) c++ CPPtext(4) sh(3) html5(2) asm(1) bash C(1) cmake(1) d(1) make text(1)
|-
||Ruby||1103||32||832||26.1718 %||76.49 %||23.51 %||0.06 %||ruby Ruby(1588) bash(4) c foo(2) html5(2) bar bazRuby(2) rust(1) tcl(1) text(1)
|-
||Racket||10911089||3334||11391155||26.4948 %||75.0908 %||24.9192 %||0.29 %||racket Racket(1343) scheme(18) text(9) bash(1) Cc(1) cmd(1) html5(1) xml(1)
|-
||FreeBASIC||10701073||47||12341232||30.8887 %||82.3841 %||17.6259 %||0.03 %||freebasic(1128) FreeBASIC FreeBasicbasic(2) qbasic basic(2) c(1) Freebasictext(1) zxbasic(1)
|-
||zkl||1011||19||688||17.98 %||69.69 %||30.31 %||0.03 %||zkl c(1728) bash(2) csharpc(2) html5 r(1)
|-
||Sidef||1003||22||545||30.82 %||70.1718 %||29.8382 %||0.45 %||ruby(1251) sidef(4) shell(2) html5(1)
|}
 
 
<div style="padding:1em;background:#eeeeff;"><h3>Older commentary</h3>
10,327

edits