[Soekris] OS FAQ
Chris Boot
bootc at bootc.net
Mon Oct 8 16:23:04 UTC 2007
Matteo Basso - Net Stop Snc wrote:
> A little tip to write some source code on wiki:
>
> If you want post/write on wiki your .config file or your script you use:
> name
> name2
>
> with a ' ' at the beginning of EVERY line.
> To post extended file with " " space you waste a lot of time...a little
> solution? sed.
>
> kraba at miruna:~$ sed 's/^/ /' /PATH/OF/YOUR/FILE >> file-for-wiki
>
> now copy your file-for-wiki on wiki:)
> Matteo
>
> ps: I write it after modified of gentoo .config file on wiki
>
Ouch. You could just wrap the whole block in '{{{' and '}}}' and not
have to faff with sed every time you copy/paste a large chunk of code.
Chris
More information about the Soekris-tech
mailing list