1
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
# Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
5
# The contents of this file are subject to the terms of either the GNU
6
# General Public License Version 2 only ("GPL") or the Common
7
# Development and Distribution License("CDDL") (collectively, the
8
# "License"). You may not use this file except in compliance with the
9
# License. You can obtain a copy of the License at
10
# http://www.netbeans.org/cddl-gplv2.html
11
# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
12
# specific language governing permissions and limitations under the
13
# License. When distributing the software, include this License Header
14
# Notice in each file and include the License file at
15
# nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
16
# particular file as subject to the "Classpath" exception as provided
17
# by Sun in the GPL Version 2 section of the License file that
18
# accompanied this code. If applicable, add the following below the
19
# License Header, with the fields enclosed by brackets [] replaced by
20
# your own identifying information:
21
# "Portions Copyrighted [year] [name of copyright owner]"
25
# The Original Software is NetBeans. The Initial Developer of the Original
26
# Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
27
# Microsystems, Inc. All Rights Reserved.
29
# If you wish your version of this file to be governed by only the CDDL
30
# or only the GPL Version 2, indicate your decision by adding
31
# "[Contributor] elects to include this software in this distribution
32
# under the [CDDL or GPL Version 2] license." If you do not indicate a
33
# single choice of license, a recipient has the option to distribute
34
# your version of this file under either the CDDL, the GPL Version 2 or
35
# to extend the choice of license to its licensees as provided above.
36
# However, if you add GPL Version 2 code and therefore, elected the GPL
37
# Version 2 license, then the option applies only if the new code is
38
# made subject to such option by the copyright holder.
42
########### no token definition - the tokens are created by handcoded HTML Lexer
44
########### grammar ############################################################
51
tags = ( tag | etext | comment )*;
53
etext = <TEXT> | <CHARACTER> | <SCRIPT> | <STYLE>;
55
tag = <TAG_OPEN_SYMBOL> ( startTag | endTag );
56
startTag = <TAG_OPEN> (attribute)* <TAG_CLOSE_SYMBOL>;
57
endTag = <TAG_CLOSE> <TAG_CLOSE_SYMBOL>;
58
comment = (<BLOCK_COMMENT>)*;
60
attribute = <ARGUMENT>;
62
attribute = <ARGUMENT> <OPERATOR,'='> <VALUE>;
66
process:org.netbeans.modules.html.editor.HTML.process;
67
process_embedded: "true";
68
skip_embedded: "true";
71
########### indentation ########################################################
73
#REFORMAT:startTag:"i++"
74
#REFORMAT:endTag:"--i"
75
#REFORMAT:simpleTag:"i"
79
#REFORMAT:html_comment:"i"
80
#REFORMAT:unpairedStartTag:"i"
81
#REFORMAT:html_attribute_name:" "
82
#REFORMAT:html_operator:""
83
#REFORMAT:html_attribute_value:""
84
#REFORMAT:html_element_end:""
85
#REFORMAT:attributes:">b "
86
#REFORMAT:attribute:"b"
89
########### colors #############################################################
92
#HACK: IT LOOK LIKE HANZ NEEDS TO HAVE SOME OF THE COLORING TO BE THE SCHLIEMANN ONES
93
#OTHERWISE THE NAVIGATOR DOESN'T SHOW NODES?!?!?!?
95
#COLOR:TAG_OPEN_SYMBOL: {
96
# foreground_color:"blue";
99
# foreground_color:"blue";
102
# foreground_color:"blue";
104
#COLOR:TAG_CLOSE_SYMBOL: {
105
# foreground_color:"blue";
110
# default_coloring:"keyword";
112
#COLOR:html_end_element_start: {
113
# foreground_color:"blue";
115
#COLOR:html_element_end: {
116
# default_coloring:"keyword";
118
#COLOR:html_end_element_end: {
119
# default_coloring:"keyword";
121
#COLOR:html_attribute_value: {
122
# default_coloring:"string";
125
# strike_through_color:"black";
126
# condition:org.netbeans.modules.html.editor.HTML.isDeprecatedAttribute;
129
# strike_through_color:"blue";
130
# condition:org.netbeans.modules.html.editor.HTML.isDeprecatedTag;
133
# strike_through_color:"blue";
134
# condition:org.netbeans.modules.html.editor.HTML.isDeprecatedTag;
137
# strike_through_color:"blue";
138
# condition:org.netbeans.modules.html.editor.HTML.isDeprecatedTag;
142
########### code folding #######################################################
145
fold_display_name:"<$startTag.TAG_OPEN$>...</$startTag.TAG_OPEN$>";
146
expand_type_action_name:"LBL_Expand_HTML_Tag";
147
collapse_type_action_name:"LBL_Collapse_HTML_Tag";
151
fold_display_name:"<!-- -->";
152
expand_type_action_name:"LBL_Expand_HTML_Comment";
153
collapse_type_action_name:"LBL_Collapse_HTML_Comment";
156
########### navigator ##########################################################
159
display_name: "$startTag.TAG_OPEN$";
161
icon: "org/netbeans/modules/html/editor/resources/htmlTag.png";
163
NAVIGATOR:simpleTag: {
164
display_name: "$TAG_OPEN$";
166
icon: "org/netbeans/modules/html/editor/resources/htmlTag.png";
169
NAVIGATOR:unpairedStartTag: {
170
display_name: "$TAG_OPEN$";
172
icon: "org/netbeans/modules/html/editor/resources/htmlTag.png";
174
NAVIGATOR:unpairedEndTag: {
175
display_name: "$TAG_CLOSE$";
177
icon: "org/netbeans/modules/html/editor/resources/htmlTag.png";
181
########### other ##############################################################
185
COMPLETE org.netbeans.modules.html.editor.HTML.complete
187
#INDENT org.netbeans.modules.html.editor.HTML.indent
189
#HYPERLINK:attribute_value: org.netbeans.modules.html.editor.HTML.hyperlink
191
MARK:unsupportedTag: {
193
message:"LBL_Unsupported_tag";
196
MARK:unpairedStartTag: {
198
message:"LBL_Unfinished_tag";
200
MARK:unpairedEndTag: {
202
message:"LBL_Unpaired_end_tag";
206
message:"LBL_Unpaired_end_tag";
210
message:"LBL_Unexpected_character";
215
message:"LBL_Deprecated_tag";
216
condition:org.netbeans.modules.html.editor.HTML.isDeprecatedTag;
220
message:"LBL_Deprecated_tag";
221
condition:org.netbeans.modules.html.editor.HTML.isDeprecatedTag;
225
message:"LBL_Deprecated_tag";
226
condition:org.netbeans.modules.html.editor.HTML.isDeprecatedTag;
231
message:"LBL_Deprecated_attribute";
232
condition:org.netbeans.modules.html.editor.HTML.isDeprecatedAttribute;
235
BUNDLE "org.netbeans.modules.html.editor.resources.Bundle"
238
# printFirst: "true";
239
# printRules: "true";