\documentclass[
pdftex,
a4paper,
11pt,
listof=totoc,index=totoc,bibliography=totoc
]{scrreprt}

\usepackage[l2tabu, orthodox]{nag}

\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{listings}

\usepackage{blindtext}
\usepackage{refcheck}

\usepackage[pdftex,
    pdfauthor={Florian Wilhelm},
    pdfsubject={TODO},
    pdftitle={TODO},
    pdfproducer={LaTeX with hyperref},
    pdfpagemode=UseOutlines,
    pdfcreator={pdflatex},
    breaklinks]
{hyperref}

\usepackage{color}

\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\lstset{
        breaklines=true,
        basicstyle=\small\fontfamily{lmtt}\selectfont,
        captionpos=b,
        stringstyle=\color{blue},
        numberstyle=\tiny\color{gray},
        keywordstyle=\color{blue},
        commentstyle=\color{green}
}

\usepackage{xparse} % NewDocumentCommand
\documentclass[
pdftex,
a4paper,
11pt,
listof=totoc,index=totoc,bibliography=totoc
]{scrreprt}

\usepackage[l2tabu, orthodox]{nag}

\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{listings}

\usepackage{blindtext}
\usepackage{refcheck}

\usepackage[pdftex,
    pdfauthor={Florian Wilhelm},
    pdfsubject={TODO},
    pdftitle={TODO},
    pdfproducer={LaTeX with hyperref},
    pdfpagemode=UseOutlines,
    pdfcreator={pdflatex},
    breaklinks]
{hyperref}

\usepackage{xcolor}

\definecolor{color-green-comment}{HTML}{146414}
\lstset{
        breaklines=true,
        basicstyle=\small\fontfamily{lmtt}\selectfont,
        captionpos=b,
        stringstyle=\color{blue},
        numberstyle=\tiny\color{gray},
        keywordstyle=\color{blue},
        commentstyle=\color{color-green-comment}
}

\usepackage{xparse} % NewDocumentCommand

Use xcolor instead of color and pick better color for code comments.
Use xcolor instead of color and pick better color for code comments.
