2
votes
1answer
58 views

Listings refuses to highlight identifiers such as 'intent–filter'. Why?

I have some xml code, which I want to look fine in my latexdocument. I am doing it this way: \documentclass[12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} ...
4
votes
1answer
170 views

Color lines in source code that is embedded in LaTeX

I am looking for a way to mark some lines in a source code sample that will be integrated into my LaTeX code. I already found solutions to embed source code and have syntax highlighting like this ...
1
vote
1answer
805 views

Hightlight an XML code beamer

To hightlight an XML code I have refer to XML syntax highlighting, so I write: \documentclass[10pt]{beamer} \usepackage{listings} \usepackage{color} \definecolor{gray}{rgb}{0.4,0.4,0.4} ...
6
votes
1answer
2k views

XML syntax highlighting does not work

How do I make comments highlighted in the form: <!-- ======= Processing Root tag ======= --> . This is not working. \documentclass[11pt]{scrartcl} \usepackage{listings, color} ...
9
votes
2answers
3k views

XML highlighting - different style for attributes

I need to highlight syntax in my LaTeX presentation, so i've found this answer: XML syntax highlighting \lstdefinelanguage{XML} { morestring=[b]", morestring=[s]{>}{<}, ...