Nix (language): Difference between revisions

imported>Efx
spacing
imported>Lucus16
m Fix multine line string example formatting
Line 56: Line 56:
| Strings || Strings either start with <code>double quotes</code> or <code>double single quotes</code>. They also support antiquotation (templating). Leading spaces are stripped with double single quotes. || <code>"Say ${pkgs.hello.name}"</code>  
| Strings || Strings either start with <code>double quotes</code> or <code>double single quotes</code>. They also support antiquotation (templating). Leading spaces are stripped with double single quotes. || <code>"Say ${pkgs.hello.name}"</code>  
Multiline String:
Multiline String:
<syntaxHighlight lang="nix">''first line
<syntaxHighlight lang="nix">''
  first line
   second line
   second line
''</SyntaxHighlight>
''</SyntaxHighlight>