Patulous Dreamweaver: What define tripartite label oneself is analytic
Because making the development of Dreamweaver plug-in unit all the time recently, the data of Chinese is very little, him English is differred again, when examining English data not by giddy. After be forced to do translates the content with serious wh some of which into Chinese, when looking, just feel frank many. This section is chosen from Dreamweaver 8 accessary " Extending Dreamweaver 8 " , when translating, consulted island of a person adept in martial arts and given to chivalrous conduct is translated " Dreamweaver 4 Chinese is helped " . Nevertheless simple minded says impolitely, with golden hill the software of fast interpret and so on translates the certain part that I suspect to that is helped a bit, read anyway rise more difficult than English.
The server carries a technology, for instance ASP, Macromedia ColdFusion, JSP, and PHP uses special blame HTML grammar inside HTML file, the server is founded on the foundation of these code and provide the content of HTML format. Detect when Dreamweaver blame HTML label, dreamweaver can call the definition file of tripartite label to compare them, these files appoint Dreamweaver how to be read take and show these ticket.
Cite a case, it is besides HTML language of the standard, ASP file still was included for the ASP code with analytic server. ASP code looks and HTML ticket is similar, it by a pair of label, initial <% and the %> that shut, will label. There is a file that the name is Tags.xml in the Configuration/ThirdPartyTags folder of Dreamweaver, this file is all sorts of tripartite label that use a description to include ASP inside are normative, defined Dreamweaver how to display these code. Use this kind of method, ASP code is in Tags.xml already by the standard, so Dreamweaver won't try to be in again <% . . . Between %> analytic any code. It is nevertheless inside design view, it can show an icon is ASP code in order to express this. You can define your label, and can found a new label library document for every label, will appoint Dreamweaver how to read the ticket that take and shows you.
Attention: This part says how palpability defines Dreamweaver to show one each defines the method of label, but how is the editor defines the content of label oneself or was not being described attribute. How to found attribute to check implement will check and revise the attribute that defines label oneself, examine attribute to check please implement in order to obtain pertinent information.
Mode of the name that file of every label library can define a much perhaps each define label, type, content, indication standard and icon. You can found the label library file of aleatoric amount, but so that be read to take by Dreamweaver,they must be located in Configuration/ThirdPartyTags folder with processing. File of use.xml of label library file is patulous renown.
Clew: If you are having the job of several different websites at the same time (the person that assume becoming you is a free profession when) , you can define all label standards inside a file, deposit go up in a special site, when safeguarding cause someone else this site, you are OK and complete the ground include from the definition icon and attribute are checked implement inside label library turns over him.
You need to use a XML label that the name is Tagspec to define standard of a label. E.g. , the code below states a label that the name is Happy is normative.
<tagspec Tag_name="happy" Tag_type="nonempty" Render_contents="false" Content_model="marker_model" Icon="happy.gif" Icon_width="18" Icon_height="18"></tagspec>
You can use Tagspec to define two kinds of label:
·The common label of HTML formatHappy label example is the common label of format of a HTML. It begins at <happy>Label, beginning label and end data is included between label, end finally at </happy>Label.
·The label that string limits
The label that string limits begins with a string, end with another string, they and HTML empty label (and so on of such as Img) have similar place, because their both neither contains content,also did not shut label. If Happy also is the label that a string limits, its definition must include Start_string and End_string inside the standard two attribute. ASP label is the label that string limits, they begin from <% , to %>End, also did not shut label.
The information enumerate below each attribute of Tagspec label and virtual value. Contain asterisk (" * " ) the ticket that attribute shows not to apply to string to limit, optional attribute used big bracket ({} ) will mark; Conclude not hard, other belong to necessary attribute without what use big bracket label.
<tagspec>
Explain
About tripartite label establish information beforehand
Attribute
Tag_name, {tag_type} , {render_contents} , {content_model} , {start_string} , {end_string} , {detect_in_attribute} , {parse_attributes} , icon, icon_width, icon_height, {equivalent_tag} , {is_visual} , {server_model}
Tag_name represents the name that defines oneself. To the label that string limits, tag_name is used at detecting only a specific attribute is checked implement whether to apply to this label. If attribute is checked implement the first position in up to specification (it is namely actually inside the statement of group) included this label name and the asterisk on mark (" * " ) , so this examination implement the label that will be allowed to examine this type. Cite a case, the label name of ASP code is ASP, the inspection that allows to check ASP code implement *ASP* must be included in group. Check about attribute implement the information of API, consult please attribute is checked implement.
It is empty that Tag_type decides this label (resemble in front mentioned Img in that way) , still allow to beginning with shut content is placed between label (like Code label in that way) . This attribute to common (blame string limits) label is necessary, but the label that limits to string not become effective, because they always are empty. Virtual value includes "empty" and "nonempty" .
Render_contents is certainly in design view, this label shows content, acting still with specific icon. This attribute is necessary to be not sky label only, to empty label criterion not become effective (empty label itself can be offerred without content show) . This attribute applies at inserting attribute only external label, if a label inserts the attribute of other label,be worth inside, its content will not show (this paragraph is a bit fathomless, what I think of is the Object of and so on of RealMedia, Flash, those Param label inside? ) . Virtual value is "true" or "false" .
Content_model describes this label to be able to contain which kinds of content, still this label can insert the where of HTML file. Virtual value includes "block_model" , "Head_model" , "Marker_model" , and "script_model" :
·Block_model states this label can include the lump boy or girl friend of and so on of Div, P, and this label can appear in Body area only, perhaps insert other Body-content label inside, for instance Div, Layer and Td.
·Head_model states this label can include a written language only and can appear inside HEAD limits only.
·Marker_model states this label can include any effective HTML code, and can be put in any positions inside HTML file. The HTML checking program of the buy inside Dreamweaver defines oversight the label that is Marker_model. Nevertheless, checking program won't the content that these label contain oversight; So, although label itself is OK,everywhere is placed, but the certain place that its content brings about HTML possibly however produces a mistake. For example, simple text cannot appear (the Head element with lawful eliminate) the Head area in documentation, so you cannot put a Marker_model tag that includes pure text version in Head area (if you want so do, then you must replace the content mode of this label by Marker_model for Head_model) . The label of use Marker_model will show inside group (be located in P or such Div lump inside the element -- cite a case, inside a paragraph) , if want to let the paragraph that itself shows inside this label, around leaves cle an to go, so the proposal does not use this pattern.
·Script_model makes this label OK set any positions between label of the HTML inside documentation. Detect when Dreamweaver the label that uses this pattern, oversight all content of this label. Use this kind of number (for instance certain ColdFusion label) hind Dreamweaver will not analytic.
Start_string appoints the initial drop of the label that a separator limits as string. The label that string limits can be placed to be in any places that can insert annotate. To the code between Start_string and End_string, dreamweaver both neither can go analytic, code or also won't make a link. When been define when End_string, this attribute is indispensible.
The end of the label that End_string appoints a separator to be limitted as string is nodded. Same, when been define when Start_string, this attribute is indispensible.
Detect_in_attribute is appointed whether to want all code between oversight Start_string and End_string (perhaps beginning and between end label, if these two string are done not have,be defined) , no matter attribute or value are inserted between these code. Its acquiescent value is "false" , the label that usually nevertheless string limits should be this value setting "true" . For example, ASP label standard appoints Detect_in_attribute="true" , consider ASP label in-house to have the quote that includes property cost so, also will by Dreamweaver oversight.
Parse_attributes expresses to whether want analytic the attribute of this label. If the setting is "true" (acquiescent value) , dreamweaver will be analytic these attribute; If the setting is "false" , dreamweaver will what leave extra department " > " all code code before appearing is whole oversight. For example, the label of such as of such as Cfif should be this attribute setting "false" (because be in <cfif A Is 1>Inside such label, the combination that Dreamweaver cannot regard / of name of a pair of attribute as the value his comes analytic) .
Icon designates the method of the icon that matchs this label and file name. This attribute to empty label it is necessary, the blame empty ticket that cannot show to those content the design view in documentation window is medium additionally is necessary as much.
Icon_width appoints the width resembling element of icon.
Icon_height appoints the height resembling element of icon.
Equivalent_tag is ColdFusion Li Mou some appoint simple HTML equivalent with the label of the correlation that express sheet. Other label cannot use this property.
Is_visual appoints this label to whether be seen on the page. For example, coldFusion label Cfgraph is worth without what appoint Is_visual (accordingly use acquiesce is worth "true" ) , coldFusion label Cfset appointed the value of Is_visual to be "false" . Setting a dialog box beforehand " sightless element " inside one column, you can control the visibility of server label; The visibility of visible server label and label of not visible server can be installed apart.
Server_model, if installed this attribute, show Tagspec ticket only the page that applicable appoints server mode at belonging to. If do not have a setting, criterion Tagspec can apply at all pages. For example, of ASP and JSP delimiter accord with is same, but the Tagspec label of applicable JSP appointed server mode to be "JSP" , detect in JSP page when Dreamweaver so specific delimiter accord with, it can show the icon of a JSP; Should detect in blame JSP page same code, it can show ASP icon.
Content
Without (empty label) .
Container
Without.
Give typical examples
<tagspec Tag_name="happy" Tag_type="nonempty" Render_contents="false" Content_model="marker_model" Icon="happy.gif" Icon_width="18" Icon_height="18"></tagspec>
How does label show in design view from the definition
Define the pattern that the label design in documentation window shows in view oneself, the value that decides the Tag_type attribute at Tagspec label and Render_contents attribute (consult please what define tripartite label oneself is analytic) . If the value of Tag_type is "empty" , appoint icon with respect to what indication Icon attribute defines. If the value of Tag_type is "nonempty" , but the value of Render_contents is "false" , also can show icon in that way like empty label. If why an example of the Happy label that the example below demonstrated us to a moment ago defined inserts HTML code in:
<p>This Is A Paragraph That Includes An Instance Of The <code>happy</code>tag (<happy>Joe</happy>) . </p>
Because be in label standard, render_contents has been installed to be "false" , so Happy label (word Joe) will be not shown, begin and shut label to include the content between them to will be replaced a simple icon.
Be not empty label to what value of a Render_contents is "true" , design view won't show his for icon, show however begin label and shut the content between label (for instance the text between label, resemble such: It is to begin here with shut the content </mytag> between label) . If be in menu option, examine>Visible assistant>Sightless element already by pitch on, so these content will be used " code color " the color of tripartite label that parameter appoints comes Gao Liang shows (" code color " the label that uses at definition of label library file only)
How to change the tall bright color of tripartite label:
1, the editor in choosing menu option>First selection parameter, choose next " code color " column.
2, click casing of color of tripartite label in order to show color selector.
3, choose a kind of color, click next " affirmatory " shut set a dialog box beforehand. About how choosing color, ask additionally consult use Dreamweaver.
Avoid to adapt tripartite label
Dreamweaver will be corrective in HTML code certain and specific mistake, detailed information asks referenced use Dreamweaver. Below acquiescent circumstance, dreamweaver prohibits expanding HTML code is changed in the file of the name in specific file, these file names include.asp (ASP) , .cfm (ColdFusion) , .jsp (JSP) , and.php (PHP) . Such acquiescent setting is to make sure Dreamweaver won't revise any including accidentally the code inside blame HTML label. You can change the acquiescent adapting behaviour of Dreamweaver, so that be in,HTML adapts code when opening this kind of file, the file type that and you also can be in Dreamweaver prohibits adapting adds other file types inside list.
Check input of certain and special character to attribute when you implement when, dreamweaver can code them into numerical value. Generally speaking, letting Dreamweaver implement this kind of code is best, because these special character are in,span different platform and browser when, be indicated the possibility better. Nevertheless, because this kind of encode can affect tripartite ticket, when the file that includes tripartite ticket in the editor when you so, you should change the encode behaviour of Dreamweaver possibly.
Allow Dreamweaver to adapt in the file of more type HTML:
1, the editor in choosing menu option>First selection parameter, choose next " code adapts " column
2, below the choice any:
·Amend illegal nest label or did not end label
·Delete redundant end label
3, carry out a below:
·From " never adapt code: In containing patulous document " the file expands the name is deleted inside list one or more.
·Cancel " never adapt code: In containing patulous document " option. Ask an attention: Such meetings bring about Dreamweaver to be able to be in the file of any types adapting HTML code.
Add the file kind that Dreamweaver prohibits adapting:
1, the editor in choosing menu option>First selection parameter, choose next " code adapts " column
2, below the choice any:
·Amend illegal nest label or did not end label
·Delete redundant end label
3, affirm " never adapt code: In containing patulous document " already by pitch on, in expanding new document the name joins the list of text casing.
If new file type won't show,be in " file>Open " of the dialog box play a menu inside, you may need to increase it to Configuration/Extensions.txt folder inside. Detailed information, consult please the file type that transforms acquiesce.
Shut the encode option of Dreamweaver:
1, the editor in choosing menu option>First selection parameter, choose next " code adapts " column
2, cancel two " special character codes " the any in option.
About " code adapts " the other information that parameter chooses, consult please use Dreamweaver.