! Syntax Highlighting Patterns for simple XML
!
! Pattern version 0.4
! Stephen Mathews
! Dynamic Imaging, Corp
! smathews@dimaging.com
!
! As writters of frontend and backend multiplatform software, our
! organization has chosen XML as the communication protocol, for its
! extensibility. As a communication protocol we are only using very
! general aspects of xml. These patterns supports only a few of the many
! features of XML. This is the first usable version of these patterns.
! The .ui (along with .xml) is for browsing Qt's XML based GUI designer
! files. I will send updates as it is expanded upon or debugged.
!
! Separate Highlighting Patterns for:
! Opening tags:
!
! Closing tags:
!
! Attribute values:
!
! Tag values: in readable bold black
! I would be bold
! Enity References:
! &
!
! This is the first pattern I have ever sent out to the world. So if it
! doesn't work or import correctly, please don't flame me. I hope you enjoy!
!
! In NEdit Version 5.0.1 and beyond, load this pattern by starting nedit with:
!
! nedit -import
!
! Then, check that the patterns were loaded correctly, and choose Save Defaults
! from the Preferences menu. The new patterns will now be incorporated into
! your own .nedit file, so the next time you start NEdit, you will no longer
! need to use -import. If it fails, exit and do not save defaults.
!
! In version 5.0, without -import, you must edit your .nedit file by hand and
! add the contents of each resource below to the corresponding list in your
! .nedit file. Be sure to separate new entries with \n, and continue resource
! strings by escaping all newlines within a resource value with \ (backslash),
! leaving only the last line of the resource value not ending in \.
!
nedit.highlightPatterns: \
XML:1:0{\n\
entity_reference1:"\\&":";"::XMLSeeWellRed:attribute_value:\n\
entity_reference2:"\\&":";"::XMLSeeWellRed:tag_value:D\n\
closing_tag:"\\":"\\>"::Preprocessor1::\n\
comment:"\\<\\?":"\\>"::Comment::\n\
comment2:"\\"::Comment::\n\
tag:"\\<":"\\>"::Keyword::\n\
attribute_equals:"=":::Identifier:tag:\n\
attribute_value:"""":""""::Text Key:tag:\n\
attribute_quotes:"&":"&"::Identifier:attribute_value:C\n\
tag_value:"[\\w!-@{-~\\[-\\X60]":::XMLSeeWellBlk::D\n\
}
nedit.languageModes: XML:.xml .ui::::::"<>/="""
nedit.styles: \
XMLSeeWellBlk:black:Bold\n\
XMLSeeWellRed:red:Bold