diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /kate/tests/highlight.xml | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/tests/highlight.xml')
-rw-r--r-- | kate/tests/highlight.xml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/kate/tests/highlight.xml b/kate/tests/highlight.xml new file mode 100644 index 000000000..007449c29 --- /dev/null +++ b/kate/tests/highlight.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<!-- we need this tags or this is no valid file --> + + +This is a pseudo XML file to test Kate's XML syntax highlighting. + +Doctype: + <!DOCTYPE HTML PUBLIC "-//SOME_DOCTYPE 0.01//EN" SYSTEM "foobar.dtd"> + +Processing instruction: + <?php processing instruction ?> + +Comments: + <!-- a comment --> + <!-- another comment, + using more than one line --> + +Comment inside element: + <element attr="foobar">content<!-- comment --></element> + +Markup inside comment: + <!-- + This is a comment! + <element inside_comment /> + --> + +Empty element: + <empty/> + <empty /> + +Simple element plus content: + <element>some content</element> + <element attr="foobar">some + content</element> + +Namespace for elements and attributes: + <ns:element>content</ns:element> + <element ns:attr="content content">content</element> + +Elements containing allowed characters: + <element-dash foo="test"/> + <element.dot foo="test"/> + +Elements containing allowed start characters: + <:element foo="test"/> + <_element foo="test"/> + +Single quotes (the same as double quotes): + <element attr='content content'>content</element> + +Allowed Whitespace: + <element attr = "test" > + content</element> + +Entities: + + å + å + å + И + 水 + <element attr="foo å & bar"/> + +Illegal XML, should not be highlighted: + <0foobar> -- no digit as first character + <-foo> -- no dash as first character |