Got it working, with a little help from a friend.
\documentclass{article}
\usepackage{listings}
\usepackage{xcolor}
\definecolor{stringColor}{HTML}{718a62}
\lstdefinelanguage{Nix}{
keywords=[1]{true, false, null},
keywords=[2]{let, in, with, rec, inherit},
keywords=[3]{toString ...
Search found 2 matches
- Tue Jun 18, 2024 7:19 am
- Forum: General
- Topic: Nix language for lstlisting environment
- Replies: 2
- Views: 12565
- Thu Jun 13, 2024 7:55 am
- Forum: General
- Topic: Nix language for lstlisting environment
- Replies: 2
- Views: 12565
Nix language for lstlisting environment
Hi,
I'm trying to define the Nix language, this is what I have so far.
\documentclass{article}
\usepackage{listings}
\usepackage{xcolor}
\definecolor{stringColor}{HTML}{718a62}
\lstdefinelanguage{Nix}{
keywords=[1]{true, false, null},
keywords=[2]{let, in, with, rec, inherit},
keywords=[3 ...
I'm trying to define the Nix language, this is what I have so far.
\documentclass{article}
\usepackage{listings}
\usepackage{xcolor}
\definecolor{stringColor}{HTML}{718a62}
\lstdefinelanguage{Nix}{
keywords=[1]{true, false, null},
keywords=[2]{let, in, with, rec, inherit},
keywords=[3 ...