Difference between revisions of "Source talk:NetHack 3.4.3/src/objects.c"
Jump to navigation
Jump to search
(Jayt's script) |
m (Oops. :)) |
||
Line 4: | Line 4: | ||
::Ah, but Jayt has a [[User:Jayt#Source_wikification_script|source wikification script]] made in Python. It includes some html-code to make the lines linkable. But as it happens, I haven't got a Python environment in my use. --[[User:ZeroOne|ZeroOne]] 18:45, 13 August 2006 (UTC) | ::Ah, but Jayt has a [[User:Jayt#Source_wikification_script|source wikification script]] made in Python. It includes some html-code to make the lines linkable. But as it happens, I haven't got a Python environment in my use. --[[User:ZeroOne|ZeroOne]] 18:45, 13 August 2006 (UTC) | ||
+ | |||
+ | :::Good point, I forgot about line linking. I'll run objects.c through [[Jayt]]'s wikification script. [[User:Eidolos|Eidolos]] 18:49, 13 August 2006 (UTC) |
Revision as of 18:49, 13 August 2006
This file needs line numbers! --ZeroOne 17:49, 13 August 2006 (UTC)
- perl -i.bak -ple '$_ = sprintf "%-4s%s", ++$i . ".", $_ if /^\s/' file.wiki
- It's not perfect, but probably quite good enough. You'll need to tweak the 4 for however many digits the largest line number has. Eidolos 18:09, 13 August 2006 (UTC)
- Ah, but Jayt has a source wikification script made in Python. It includes some html-code to make the lines linkable. But as it happens, I haven't got a Python environment in my use. --ZeroOne 18:45, 13 August 2006 (UTC)