Language Identification for Program Code in Documents
This paper proposes a simple approach to labelling the language of programming code embedded in structured documents, using standard language attributes (such as xml:lang and HTML lang ) with a single reserved language code qpr , and specific programming languages and/or data formats distinguished via the following portion. This approach facilitates language-specific processing including syntax highlighting, spell checking, and validation while maintaining backward compatibility with existing document processing systems.
Authors
- Steven J. DeRose (ORCID: https://orcid.org/0000-0003-4216-548X)
Publication Details
- Journal
- Balisage series on markup technologies
- Published
- 2025-07-26
- DOI
- https://doi.org/10.4242/balisagevol30.derose02
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00