I'm writing an academic (working) paper, and in the appendix I display a short program I wrote in Stata, a program used for statistical analysis. I wanted to highlight the syntax with colours, so I used Mauricio Caceres Bravo's Stata syntax highlighting markup code, used in LaTeX.

I want to cite his code, but I am not sure of the exact referencing rules for markup code. I have tried Googling this, but most sites simply copy what the University of Arkansas says. That advice doesn't give a list of "types" of code, so I'm not sure what to label Maurico's code (the guide only gives "computer program/source code" as two examples). The APA 7 Referencing Guide lists "Computer Software/Language/Program" as the types.

What type of code is Maurico's, a snippet of markup language, found on GitHub?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.