NixOS Wiki:Contributing: Difference between revisions

imported>Castilma
m Add reference to <syntaxhighlight>.
imported>Fadenb
Line 34: Line 34:
* Follow standard capitalization for software, particularly for the Nix ecosystem (NixOS, Nix, Nix Language, Nixpkgs, NixOps and Hydra).
* Follow standard capitalization for software, particularly for the Nix ecosystem (NixOS, Nix, Nix Language, Nixpkgs, NixOps and Hydra).
* Use inline <code><nowiki><code></nowiki></code> tags for filenames, paths, commands and command-line tools.
* Use inline <code><nowiki><code></nowiki></code> tags for filenames, paths, commands and command-line tools.
* Use <code><nowiki><syntaxhighlight lang=nix></nowiki></code> for code snippets. Change <code>lang=</code> to match the actual language of the code.
* Use <code><nowiki><syntaxhighlight lang="nix"></nowiki></code> for code snippets. Change <code>lang=</code> to match the actual language of the code.
* Use the secondary MediaWiki header (<code><nowiki>== My Section ==</nowiki></code>) for main sections (the primary header should never be used).
* Use the secondary MediaWiki header (<code><nowiki>== My Section ==</nowiki></code>) for main sections (the primary header should never be used).