NetHackWiki talk:Source file line numbers

From NetHackWiki
Jump to navigation Jump to search

Which namespace?

Should this page go in the NetHackWiki namespace instead of the main namespace? To me, this page seems similar to pages like NetHackWiki:Style guide and NetHackWiki:Redirects, in the way that it seems to be aimed at wiki editors. --ScienceBall (talk) 16:47, 29 June 2024 (UTC)

Yeah sure. Source code, in the main namespace, is going to be the only caller, so this page will be easy to move if someone has a more persuasive argument later. Furey (talk) 17:30, 29 June 2024 (UTC)

Bug with GeSHi processing

https://nethackwiki.com/index.php?title=Category:Pages_with_syntax_highlighting_errors

When I do a null edit (or a non-null edit) on a page with __MIXEDSYNTAXHIGHLIGHT__ then the page goes into this category.

Umbire has demonstrated that removing __MIXEDSYNTAXHIGHLIGHT__ brings back the line numbers.

I spent time on https://web.archive.org/web/*/https://nethackwiki.com/wiki/Source:NetHack_3.4.3/*

so something changed between october 3, 2018 and april 7, 2019. That is likely when line numbers broke too.

User:Paxed/MixedSyntaxHighlight

Looks like it strips the line number markup and passes $matches[2] to GeSHi. Then somehow ... GeSHi fails, and we're left without line numbers.

Furey (talk) 17:53, 29 June 2024 (UTC)