TransWikia.com

Colored code using mosel xpress programming language

TeX - LaTeX Asked by bajun65537 on December 23, 2020

I would like to edit the lstset so that it supports the mosel language coloring scheme.

documentclass[a4paper]{article}
usepackage[english]{babel}
usepackage{microtype,etex,listings,color,parskip}
usepackage[margin=2cm]{geometry}
usepackage{hyperref}

lstset{
    language= ???,
    basicstyle=ttfamilysmall,
    aboveskip={1.0baselineskip},
    belowskip={1.0baselineskip},
    columns=fixed,
    extendedchars=true,
    breaklines=true,
    tabsize=4,
    prebreak=raisebox{0ex}[0ex][0ex]{ensuremath{hookleftarrow}},
    frame=lines,
    showtabs=false,
    showspaces=false,
    showstringspaces=false,
    keywordstyle=color[rgb]{0.627,0.126,0.941},
    commentstyle=color[rgb]{0.133,0.545,0.133},
    stringstyle=color[rgb]{1,0,0},
    numbers=left,
    numberstyle=small,
    stepnumber=1,
    numbersep=10pt,
    captionpos=t,
    escapeinside={%*}{*)}
}

Is there any way that I can specify which words and symbols are supposed to be highlighted and which correspond to comments? I am attaching the part of the code and its colors. mosel

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP