Search found 3 matches

by piotrekde
Wed Jul 07, 2010 7:19 pm
Forum: Math & Science
Topic: Listing XML and Java source codes
Replies: 5
Views: 13734

Listing XML and Java source codes

It works, thank you very much!

I've added some extra lines to lstlang1.sty:

\lst@definelanguage{XML}%
{keywords={,CDATA,DOCTYPE,ATTLIST,termdef,ELEMENT,EMPTY,ANY,ID,%
IDREF,IDREFS,ENTITY,ENTITIES,NMTOKEN,NMTOKENS,NOTATION,%
INCLUDE,IGNORE,SYSTEM,PUBLIC,NDATA,PUBLIC,%
PCDATA,REQUIRED,IMPLIED ...
by piotrekde
Wed Jul 07, 2010 11:24 am
Forum: Math & Science
Topic: Listing XML and Java source codes
Replies: 5
Views: 13734

Listing XML and Java source codes


I'm not an expert. But these tags may not be predefined. Are they basic elements of XML? Perhaps you can take a look at the default language definitions.

I think that you are right. I just thought that everything between < > will be treated as XML tag. Can you please give me an advice where to ...
by piotrekde
Tue Jul 06, 2010 3:12 pm
Forum: Math & Science
Topic: Listing XML and Java source codes
Replies: 5
Views: 13734

Listing XML and Java source codes

Hi,

I am trying to create pattern to list my Java source code. It looks pretty nice, but there are some problems when I try to list XML code. Here is how it's done:


\documentclass[11pt,a4paper]{article}

\usepackage{listings}
\usepackage{color}
\usepackage{xcolor}
\usepackage{caption ...