I'm currently working on a paper where I want to showcase some JavaScript code snippets. I am using the listing package and defined JavaScript with \lstdefinelanguage.

Since the command with its numerous options is very long, I asked myself whether this could also be stored in a separate file?

1 Answer 1


Yes, it can be stored in a separate file, as in \input{SubFolder/MyLanguageDefinition.tex}.

  • Thank you very much for your answer.
    – mab0189
    Commented Apr 17, 2021 at 20:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .