Thundergnat

Joined 24 August 2022
m
→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting
(Update Stats)
m (→‎Utilities I Wrote:: Update "language links" tapermonkey script to deal with new (Mediawiki 1.39) page title formatting)
 
(6 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.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.12 (20212022/0608/1022)
 
 
==Resources I Host:==
Line 49 ⟶ 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-0609-1211
!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
|-
||PhixWren||15331571||5557||17881646||3231.6754 %||7875.2886 %||2124.7214 %||0.0409 %||Phixecmascript(1638) c(65) csharpgo(14) javascript(8) rpython(2) xml(2) AutoHotkey(1) bash(1) perl(1) text(1)
|-
||WrenPhix||15331570||5755||16331782||3132.5569 %||7578.8427 %||2421.1673 %||0.0904 %||ecmascriptphix(1922) c goPhix(7) javascript C foo bar bash baz python xml(1)
|-
||Julia||15051538||3334||9861011||27.891 %||77.0821 %||22.9279 %||0.2827 %||julia(1817) text(4) Julia(3) ruby(3) html5 python(2) cpp(1) html(1) lua(1) xml(1)
|-
||GoRaku||14901518||7630||1812895||3428.5678 %||7569.2335 %||2430.7765 %||0.159 %||goraku(1958) Go htmltext(7) bash(4) c(4) xml(2) html5html(1) protorust(1) thriftshell(1)
|-
||RakuGo||14851497||3076||8891809||2834.9156 %||6975.3223 %||3024.6877 %||0.571 %||perl6go(1924) bashhtml(5) Ctext(3) bash(2) c(2) htmlxml(2) rustecmascript(1) shellfuturebasic(1) XMLhtml5(1) xmlproto(1) thrift(1)
|-
||Perl||14501473||34||919925||27.02 %||68.1917 %||31.8183 %||0.091 %||perl(2047) Perltext(12) bash(5) Shellshell(2) c(1) html5(1) latex(1) Perl(1)
|-
||NimPython||14011406||4872||13252017||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||13661402||7248||20021332||3024.7464 %||75.4652 %||24.5448 %||01.0412 %||pythonnim(1599) Pythontext(10) bash html5python(8) c(4) cmd ebnf python3Nim(3) QB64ruby(3) Shellnimrod(1) xml(1)
|-
||CJ||12061275||7928||1852780||2826.7493 %||7269.5473 %||30.27.46 %||06.0153 %||cj(2986) Ctext(48) cppJ(11) bash(7) XMLc(4) Assemblysh(4) d gobnf(1) html5(1) make(1) perlpython(1) shsnusp(1) Shellxml(1)
|-
||JC||11501215||2779||7581873||2728.0676 %||6972.4562 %||3027.5538 %||60.3801 %||jc(1656) Jtext(48) cpp(11) bash(6) shC(2) %sxml(2) cassembly(1) foocafe(1) bard(1) baz bnf Cgo(1) html5(1) make(1) pythonperl(1) SNUSPsh(1) xmlshell(1)
|-
||REXXMathematica||11451177||5512||3356422||4017.3356 %||6870.4477 %||3129.5623 %||80.4804 %||rexxmathematica(1485) text(35) Mathematica(8) wolfram REXXlanguage(2) Rexxmathematica cobol(1) sh(1)
|-
||JavaREXX||11321146||6656||20673373||40.33.44 %||7868.5647 %||2131.4453 %||08.0145 %||java java5 Java Java5 c bash html5 xml foo make bar cmd java 12rexx(1766) java8text(11) Java8cobol(1) shellsh(1)
|-
||KotlinHaskell||11311138||4745||13661355||3328.2134 %||7776.6184 %||2223.3916 %||0.0308 %||scalahaskell(2089) kotlintext(7) Kotlinbash(3) Haskell(3) c C Groovy groovy HTML5(1) html5(1) java Scheme scheme xmlsh(1)
|-
||MathematicaJava||11261138||1166||4072077||1733.4552 %||7078.856 %||2921.244 %||0.0401 %||Mathematicajava(1273) mathematicajava5(223) footext(6) Wolframc(4) Languagebash(3) "~~html5(3) xml(3) Java(2) java8(2) make(2) x~~"cmd(1) barjava barf12(1) bazpython(1) shshell(1)
|-
||HaskellKotlin||11241132||4547||13491365||2833.3921 %||7677.8461 %||2322.1639 %||0.0803 %||haskellscala(1110) Haskell bashkotlin(61) c(4) groovy(2) html5(2) scheme(2) shjava(1) textxml(1)
|-
||C++||11041115||73||19701973||29.2627 %||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||10941103||32||834832||26.1918 %||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||10601073||47||12241232||30.7887 %||82.3441 %||17.6659 %||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.18 %||29.82 %||0.45 %||ruby(1251) sidef(4) shell(2) html5(1)
|}
 
 
<div style="padding:1em;background:#eeeeff;"><h3>Older commentary</h3>
10,327

edits