⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mode.xsd

📁 c#源代码
💻 XSD
📖 第 1 页 / 共 2 页
字号:
	<!-- The end symbol of a Span -->
	<xsd:complexType name="End">
		<xsd:simpleContent>
			<xsd:extension base="xsd:string">
				<xsd:attribute name="bold" type="xsd:boolean"/>
				<xsd:attribute name="italic" type="xsd:boolean"/>
				<xsd:attribute name="color" type="xsd:string"/>
				<xsd:attribute name="bgcolor" type="xsd:string"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:complexType name="Span">
		<xsd:sequence>
			<xsd:element name="Begin" type="Begin"/>
			<xsd:element name="End" type="End" minOccurs="0"/>
			<!-- Defines the symbol that indicates the beginning of the span. -->
			<!-- Defines the symbol that indicates the end of the span. May be omitted for
				 one-line spans. -->
		</xsd:sequence>
		<xsd:attribute name="name" type="xsd:string"/>
		<xsd:attribute name="rule" type="xsd:string"/>
		<xsd:attribute name="stopateol" type="xsd:boolean"/>
		<xsd:attribute name="noescapesequences" type="xsd:boolean"/>
		<xsd:attribute name="bold" type="xsd:boolean"/>
		<xsd:attribute name="italic" type="xsd:boolean"/>
		<xsd:attribute name="color" type="xsd:string"/>
		<xsd:attribute name="bgcolor" type="xsd:string"/>
		<!-- The name of the span definition -->
		<!-- Defines the rule set that is applicable in the Span. May be omitted. -->
		<!-- Defines wether the Span should terminate automatically at the end of line. Typical examples
       		 include one-line comments such as // in C++ or REM in Windows .Bat files. -->
		<!-- Defines whether C-style escape sequences using \ are applicable or not in the span. -->
		<!-- The default rendering style for the span -->
	</xsd:complexType>
	<xsd:complexType name="MarkPrevious">
		<xsd:simpleContent>
			<xsd:extension base="xsd:string">
				<xsd:attribute name="markmarker" type="xsd:boolean"/>
				<xsd:attribute name="bold" type="xsd:boolean"/>
				<xsd:attribute name="italic" type="xsd:boolean"/>
				<xsd:attribute name="color" type="xsd:string"/>
				<xsd:attribute name="bgcolor" type="xsd:string"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- Allows you to define the coloring of the symbol that follows a specified symbol -->
	<xsd:complexType name="MarkFollowing">
		<xsd:simpleContent>
			<xsd:extension base="xsd:string">
				<xsd:attribute name="markmarker" type="xsd:boolean"/>
				<xsd:attribute name="bold" type="xsd:boolean"/>
				<xsd:attribute name="italic" type="xsd:boolean"/>
				<xsd:attribute name="color" type="xsd:string"/>
				<xsd:attribute name="bgcolor" type="xsd:string"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:complexType name="Key">
		<xsd:attribute name="word" type="xsd:string"/>
		<!-- The actual KeyWord, typically reserved words or symbols in a programming language -->
	</xsd:complexType>
	<!-- A grouping of keywords that sholuld be colored the same way -->
	<xsd:complexType name="KeyWords">
		<xsd:sequence>
			<xsd:element name="Key" type="Key" maxOccurs="unbounded"/>
			<!-- A KeyWord -->
		</xsd:sequence>
		<xsd:attribute name="name" type="xsd:string"/>
		<xsd:attribute name="bold" type="xsd:boolean"/>
		<xsd:attribute name="italic" type="xsd:boolean"/>
		<xsd:attribute name="color" type="xsd:string"/>
		<xsd:attribute name="bgcolor" type="xsd:string"/>
		<!-- The name of the KeyWord group -->
		<!-- The rendering style of the  KeyWord group -->
	</xsd:complexType>
	<xsd:complexType name="RuleSet">
		<xsd:sequence>
			<xsd:element name="Delimiters" type="Delimiters" minOccurs="0"/>
			<xsd:element name="Span" type="Span" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="MarkPrevious" type="MarkPrevious" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="MarkFollowing" type="MarkFollowing" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="KeyWords" type="KeyWords" minOccurs="0" maxOccurs="unbounded"/>
			<!-- Defines the delimiting characters of the syntax, e.g., the characters that, "break up" a line
        		 into separate symbols, typically key words. It is not necessary, or desirable to include the
        		 characters that denot the start or end of a span. Space and Tab are implicitly defined as delimeters
        		 and they don't need to be includeded explicitly (this will probably be changed at some future time).-->
			<!-- A Span tag defines a scope, or what can be seen as a separate parsing context where a different set of
            	 highlighting rules are applicable compared to the text where the span is found. 
            	 Examples of spans include:
            	 - A string in a language as C
            	 - A <script> tag in Html
            	 - The internals of a tag in XML (between < and >).
            	 A span can have a rule set associated with it that defines the highlighting rules that are applicable
            	 in the span. -->
			<!-- The MarkPrevious tag allows you to define the coloring of the item that preceeds a specific
            	 symbol. An example of where this comes in handy is when coloring the contents of an XML-tag,
            	 in particular the attributes and attribute names. The following definition:
            	 <MarkPrevious bold="false" italic="false" color="Red">=</MarkPrevious>
				 will make teh highlighter color words that are followed by an = to be colored in Red.
				 You can see this in this file if you view it with the default XML-mode in SharpDevelop. -->
			<!-- The MarkFollowing tag works similarly as the MarkPrevious tag but relates to the coloring
            of the symbol that follows the specified symbol. -->
			<!-- Defines a group of keywords that should be colored the same way -->
		</xsd:sequence>
		<xsd:attribute name="name" type="xsd:string"/>
		<xsd:attribute name="reference" type="xsd:string"/>
		<xsd:attribute name="ignorecase" type="xsd:boolean"/>
		<xsd:attribute name="noescapesequences" type="xsd:boolean"/>
		<!-- The name of the RuleSet. Used when you refer to the RuleSet in the rule attribute of a Span tag.
        	 Each mode file should have a rule definition without a defined name. This denotes the default rule
        	 set for the mode. -->
		<!-- Allows you to use another mode, defined in another file as a RuleSet. For an example see the
        	 use of the JavaScript mode from the HTML-mode. -->
		<!-- Defines whether case is significant for matching keywords in the mode. -->
		<!-- Defined whether C-style escape sequences using \ is applicable for the RuleSet or not. -->
	</xsd:complexType>
	<!-- The RuleSets tag is just a grouping of the set of RuleSets for a mode. -->
	<xsd:complexType name="RuleSets">
		<xsd:sequence minOccurs="0" maxOccurs="unbounded">
			<xsd:element name="RuleSet" type="RuleSet" maxOccurs="unbounded"/>
			<!-- Any number of RuleSet tag can be defined in a mode -->
		</xsd:sequence>
	</xsd:complexType>
	<!-- SyntaxDefinition is the root-element in a mode definition file -->
	<xsd:element name="SyntaxDefinition">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="Environment" type="Environment" minOccurs="0"/>
				<xsd:element name="Properties" type="Properties" minOccurs="0"/>
				<xsd:element name="Digits" type="Digits"/>
				<xsd:element name="RuleSets" type="RuleSets"/>
				<!-- The Environment tag defines colors, for various standard elements in the SharpDevelop GUI, if
				     not given the default values are used. -->
				<!-- The Properties section defines properties which are bound to the highlighting -->
				<!-- The Digits tag defines the color for rendering Digits-->
				<!-- The RuleSets tag defines the rule sets that are used in the mode. Note that all modes are defined in
					 a flat structture even if they are used recursively. For an example of a mode that uses
					 multiple rule sets see the XML-mode. There is a top level rule-set and and another rule-set
					 that handles highligting within a tag, i.e., between < and >. -->
			</xsd:sequence>
			<xsd:attribute name="name" type="xsd:string"/>
			<xsd:attribute name="extensions" type="xsd:string"/>
			<!-- The name of the mode. This is used when you, in the defintion of a RuleSet refers to another
				 mode. I.e., one that is defined in an external file. For an example of this see the HTML-Mode that
				 uses the JavaScript-mode this way. -->
			<!-- The file extensions that the mode is applicable for. Extensions must be written with lower case and
				 should include the ., as in .txt. If several extensions are applicable they should be separeated with | -->
		</xsd:complexType>
	</xsd:element>
</xsd:schema>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -