How to insert customized HTML tags?

Hi
I insert a lot of tags like <p class="foo"> or say <span onmouseover=”doAction(this);”>.
Is it possible in Dreamweaver CS5 to extend a list of insertable tags with my customized tags and do steps like
select some text (say “some text”),
them choose a tag from the list (say <span onmouseover=”doAction(this);”>.)
A fragment “<span onmouseover=”doAction(this);”> some text</span>” will be inserted into the file instead of  selected “some text”.
Thank you in advance.

Have you used the Snippets folder to store reusable code fragments?
I use my snippets folder often. Go to an insertion point in your document and double click on the Snippet.
http://webdesign.about.com/cs/dreamweaver/ht/htdwusesnip.htm
Another option is to create and use commands from History steps:
http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7780a .html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • Inserting custom HTML tags into a HTMLDocument to be displayed in a JEditor

    Does anyone know how to insert custom tags into a HTMLDocument to be displayed in a JEditorPane?
    I have tried using the following code,
    kit.insertHTML( doc,
                    jep.getCaretPosition(),
                    "<testtag>FFFF</testtag>",
                    0,
                    0,
                    new HTML.UnknownTag("testtag") );When the above code is run the handleStartTag, handleEndTag and handleText methods are called on the HTMLReader but nothing is inserted into the document model? Can anyone help?
    I have created an instance of HTML.UnknownTag,
      public static HTML.Tag testTag = new HTML.UnknownTag("testtag");I have subclassed HTMLEditorKit and overridden the getParser() method,
      protected Parser getParser(){
        DTD dtd = null;
        try {
          dtd = createDTD( DTD.getDTD("html32"), "html32" );
        } catch ( Exception e ) {
          e.printStackTrace();
        dtd.getElement( "testtag" );
        Parser p = new ParserAdaptor( new DocumentParser( dtd ) );
        return p;
      }I have subclassed HTMLDocument and HTMLDocument.HTMLReader and created a TagAction for my new tag.
    The following code works fine, the custom tag is in the document model,
        String contents =    "<html>"
                           + "<body>"
                           + "<testtag>Here is some text</testtag>"
                           + "</body>"
                           + "</html>";
        ((HTMLDocument)jep.getDocument()).setPreservesUnknownTags(true);
        jep.setText( contents );

    I've been trying to get <blockquote> insert working in an editor but it seems to be a quite difficult task even if it's only about inserting a couple of tags into the right slot! This is the closest I got:
    HTMLDocument doc = (HTMLDocument)editor.getDocument();
    int start = editor.getCaretPosition()
    int paraStart = doc.getParagraphElement(start).getStartOffset();
    int paraEnd = doc.getParagraphElement(start).getEndOffset();
    String insideBlockQuotes = doc.getText(paraStart, paraEnd - paraStart);
    doc.setOuterHTML(doc.getParagraphElement(start),"<blockquote><p>"+insideBlockQuotes+"</p></blockquote>");
    This is how it works: Get the current paragraphs start and end positions, read the text between the start and end into a string, replace the paragrapElement with <blockquote><p>..the text from string..</p></blockquote>.
    This works 'in about' but it's far from perfect.. it has the following problems:
    1. It looses all formatting from the quoted paragraph (bold etc. tags from the quoted part)
    2. It assumes that the paragraphElement was a <p> (could have been another element too!)
    3. It's ugly
    Anybody come up with a better way to use blockquote?

  • How to insert custom HTML before /body ?

    I love that I can insert custom HTML in the <head> of a page in Muse.
    However, I need to add custom HTML just before the end of <body>.
    Namely, I want to insert custom Jquery calls just before </body>. I can't do this in the <head>.
    However, other uses for other people might include inserting Analytics tracking code before </body>, as this is more optimum than in the <head>.
    I've tried using a Custom HTML widget, but even if I put it in the footer of my page, it still ends up appearing in the rendered HTML before Muse's Javascript. I need it to come after Muse's Javascript.
    Thanks in advance.

    Hi Harry,
    Please check this discussion, you might find it helpful in making the jQuery calls.
    How to (make best) use external js library from html object (need help from dev)
    http://forums.adobe.com/thread/1213057
    - Abhishek Maurya

  • How to use the HTML tags in the reports.

    hi.
    can any one tell me how to use the HTML tags in the reports.
    i m using the forms 10 g rel 2 and reports 10 g rel 2 and application server 10g rel 2.

    Set the Contains HTML Tags property of an object to Yes, then the tags in the object's text (if any) will be used to format the object.

  • Can't insert custom HTML or change social widgets to update Phone layout

    MUSE 2014.2.1.10, CL 787362  on  Windows 8.1  i7 processor 24 GB RAM
    Anytime I try to insert custom HTML in the phone layout pages I get a window that says webpage could not be found  in a window that is too wide for the screen size and can't be re-sized!!!
    I am adding scripts, inline css and custom form code.  Need to republish changes and can't on mobile layout.  Its local code but I get The webpage cannot be found error!!! It also does this with the built in social widgets....  The code is there in the page on export but you can't preview and since I can't resize the box to 380px wide ( it jumps back open) it throws off my layout when export page.   This is not just custom HTML but upon changing or adding any of the built in social widgets such as Google maps, Facebook or  other social media.  Forms, buttons, menus and compositions no problems... they work just as they normally would.
    Preview mode just gives me the whole page as blank when I try to preview the page in Muse.  HELP  I need to update the address and the form to match the desktop site but the error is persistent! and undo does not revert it back to previous content  I just get the webpage cannot be found box even on undo!!!!

    The SECOND picture in my previous post  IS THE PREVIEW... NOTHING appears when I try to view the page in phone view!!!!
    HERE IS THE CODE!!!!!
    <style type="text/css">
    input[type="text"]
    color: #323232;
    border: 1px solid #E0E0E0;
    margin: 5px;
    fieldset {
    border:1px solid #E0E0E0;
    padding:10px;
    width: 350px;
    legend {
      padding:10 px 10 px;
      border: none;
      color:323232;
      margin:10px;
    textarea
      width: 328px;
      min-height: 14px;
      border-width: 1px;
      border-style: solid;
      border-color: #E0E0E0;
      padding: 6px;
      color: #323232;
      line-height: 14px;
      margin: 10px;
    button[type="submit"]
      text-indent:0;
      border:1px solid #E0E0E0;
      display:inline-block;
      background-color:white;
      color:#323232;
      font: Arial,  sans-serif;
      font-size:12px;
      font-weight:bold;
      font-style:normal;
      height:25px;
      line-height:25px;
      width:125px;
      text-align:center;
      margin-top:5px;
    button[type="submit"]:hover {
                  color:#679E11;
    button[type="submit"]:active {
      position:relative;
      top:1px;
    label.label-top {
    display: block;
    margin-top:5px;
    </style>
    <form  name="emailForm" id="emailForm" onsubmit="return validateform();" action="contact-us.asp" method="post">
    <fieldset>
      <legend>E-Mail</legend>
      <div>
      <label class="label-top" for="name">
       Enter your Name:
      </label>
      <input type="text" name="name" id="name" size="30" class="inputbox" value="" />
      </div>
      <div>
      <label class="label-top" for="mail">
       E-mail address:
      </label>
      <input type="text" id="mail" name="mail" size="30" value="" class="inputbox" maxlength="100" />
      </div>
      <div>
      <label class="label-top" for="subject">
       Message Subject:
      </label>
      <input type="text" name="subject" id="subject" size="30" class="inputbox" value="" />
      </div>
      <div>
      <label class="label-top" for="text">
       Enter your Message:
      </label>
      <textarea cols="50" rows="10" name="text" id="text" class="inputbox required"></textarea>
      </div>
      <div>
      <input type="checkbox" name="email_copy" id="email_copy" value="1"  />
      <label for="email_copy">
      E-mail a copy of this message to your own address. </label>
      </div>
      <div>
      <button class="button validate" type="submit">Send</button>
      </div>
    </fieldset>
    </form>
    <script type="text/javascript">
    function validateform()
    var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
        if (document.emailForm.name.value == '') {
            alert('Name is required');
      return false;
        else if (document.emailForm.mail.value==''){
            alert('Address cannot be blank');
      return false;
       else if (document.emailForm.mail.value.search(emailRegEx) == -1) {
              alert("Please enter a valid email address.");
         return false;
        else if (document.emailForm.text.value==''){
            alert('Message field cannot be blank');
      return false;
      else
          alert('Thank you for contacting Argus Talent.');
      return true;
    </script>

  • How would I insert custom HTML built in a managed Backing Bean into a page?

    I believe I could solve a project requirement if I could generate/build custom HTML in a managed Backing Bean and insert or place the output between f:verbatim elements.
    The custom HTML output would be similar to:
    <ul id="menu" class="view">
    <li>New Search</li>
    <li>Subscriber
    <ul>
    <li>Device List
    <ul>
    <li>New Device</li>
    <li>Device</li>
    </ul>
    </li>
    <li>Inbox List</li>
    <li>Resend</li>
    </ul>
    </li>
    </ul>Looking at the JSF 1.1_01 API, I don't believe there is a placeholder element?
    What is the best approach to do this?
    Thanks,

    This is exactly what you want:<h:outputText value="#{myBean.htmlString}" escape="false" />where getHtmlString() just returns a plain String object with the HTML in it.
    A custom component would be a more clever solution anyway.

  • How to render custom JSP tags

    We have our own custom JSP tag libraries (some of them extend the Struts tags, but many do not) and want those to render correctly in the design view.
    Is that supported by NitroX Struts, or will it only work with built-in Struts tags?
    If it is supported, how does one get NitroX to run the custom tags?

    It is possible to customize many aspects of the rendering of a custom tag. This is done using a combination of an M7 specific metadata, and standard css rules.
    For example, you can change the label, icon and border of a custom tag by doing the following steps:
    1) Create a folder named "nitrox" where your tld file is located. For example if you have "/WEB-INF/app.tld" then create a
    folder "/WEB-INF/nitrox/".
    2) In the nitrox folder created above, create a file named "app.tlei" (for Tag Library Extra Information). The file name used here should match the name of the tld file. In this case "app".
    3) Paste the following content in the app.tlei file:
    <taglib-extrainfo>
    <css-uri>app.css</css-uri> <!-- an optional css file relative to this tlei file -->
    <tag name="myTag">
    <display-name>My Tag</display-name> <!-- The name displayed in the Tag Libraries view -->
    <rendering-label>{tag-name} ({name})</rendering-label> <!-- This will display the value of the "name" attribute in addition to the tag name in the tag view in the JSP design editor. -->
    <small-icon>images/myTag.gif</small-icon> <!-- The image uri relative to this tlei file. This is used in the Tag Libraries view and in the JSP design editor.-->
    </tag>
    </taglib-extrainfo>
    All customization tags are optional.
    4) Create the css file referenced from the tlei file above (in this example app.css in the same directory containing the tlei file).
    5) Paste the following content in the app.css file:
    myTag {border: 1 solid red; display: "inline"}
    This will render the tag as inline (i.e as one graphical object) even if the tag has nested content.
    In addition, you can use any standard css style property.
    You can customize other tags in the same fashion.
    If a custom tag inherits from a Struts tag, then the tag can inherit the full built-in tag customization as shown in the following example:
    Suppose you have a tag named "myText" that extends the Struts html:text form field tag. To inherit the NitroX html:text customization you follow the steps:
    1) insert the following in the tlei file described above:
    <tag name="myText">
    <inherit taglib-uid="http://jakarta.apache.org/struts/tags-html" tag-name="text" />
    </tag>
    2) Insert the following css rule in the css file referenced from the tlei file:
    myText {m7-inherit: "input-text"; display: inline}
    This will inherit the built-in css style for form text fields.
    Likewise, you can inherit the other Struts tags css styles by using the following rules:
    myPassword {m7-inherit: "input-password"; display: inline}
    myCancel {m7-inherit: "input-submit"; display: inline}
    myCheckbox {m7-inherit: "input-checkbox"; display: inline}
    myRadio {m7-inherit: "input-radio"; display: inline}
    mySelect {m7-inherit: "select"; display: inline}
    myTextarea {m7-inherit: "textarea"; display: inline}
    3) The inherited tag library file (in this example the struts-html.tld), must also be present under the WEB-INF directory.
    M7 Support

  • How can I eliminate HTML tags from Oracle Text Snippet?

    I perform a search on many tables and on many columns of those tables.
    Some of those columns are VARCHAR2 and some CLOB.
    Also, some of the searchable data are HTML and some are plain text.
    My problem is that ctx_doc.snippet fetches the HTML tags.
    For example I get this, as a snippet result in one of my searches: Qual Germany n1 &lt;p&gt;Test Qual Germany n1&lt;/p&gt;
    I want the result to be fetched without the HTML tags.
    In my index configuration I have used NULL FILTER and HTML_SECTION_GROUP.With that configuration I managed to eliminate the HTML tags but not in all cases!
    For example:
    I search table CONTENTS columns TITLE(VARCHAR2) and MAIN_TEXT(CLOB)
    I created the following procedure that concatenates the two columns:
    CREATE OR REPLACE PROCEDURE CONTENTS_PROC( p_id in rowid, p_lob IN OUT clob)
    IS
    BEGIN
    FOR c1 IN (SELECT main_text||' '||title data FROM contents WHERE ROWID = p_id)
    LOOP
    dbms_lob.copy( p_lob, c1.data,
    dbms_lob.getlength( c1.data ));
    END LOOP;
    END;
    I created a user Datastore:
    BEGIN
    ctx_ddl.create_preference( 'content_trans_datastore', 'user_datastore' );
    ctx_ddl.set_attribute( 'content_trans_datastore', 'procedure', 'CONTENTS_PROC' );
    END;
    and finally I create the index:
    CREATE INDEX content_trans_ot_idx ON contents(ORACLE_TEXT_COLUMN)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS ('datastore content_trans_datastore SYNC(ON COMMIT) STORAGE INDEX_STORAGE filter ctxsys.null_filter section group ctxsys.html_section_group');
    When I perform the search on those data: &lt;p&gt; &lt;strong&gt;Test Doc-Test &lt;/strong&gt; &lt;/p&gt; the snippet I get is: Test Doc-Test.
    That's fine, the html tags are removed!
    In another case I search table NCP columns NAME(VARCHAR2) and BODY(VARCHAR2)
    I created the following procedure that concatenates the two columns:
    CREATE OR REPLACE PROCEDURE NCP_PROC( p_id in rowid, p_lob IN OUT clob)
    IS
    BEGIN
    FOR c1 IN (SELECT name||' '||body data FROM ncp WHERE ROWID = p_id)
    LOOP
    dbms_lob.copy( p_lob, c1.data,
    dbms_lob.getlength( c1.data ));
    END LOOP;
    END;
    I created a user Datastore:
    BEGIN
    ctx_ddl.create_preference( 'ncp_trans_datastore', 'user_datastore' );
    ctx_ddl.set_attribute( 'ncp_trans_datastore', 'procedure', 'NCP_PROC' );
    END;
    and finally I create the index:
    CREATE INDEX ncp_trans_ot_idx ON ncp(ORACLE_TEXT_COLUMN)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS('datastore ncp_trans_datastore SYNC(ON COMMIT) STORAGE INDEX_STORAGE filter ctxsys.null_filter section group ctxsys.html_section_group');
    When I perform the search on those data: test &lt;strong&gt; &lt;/strong&gt;http://deleteme.com the snippet I get is: test &lt;strong&gt; &lt;/strong&gt;http://deleteme.com!!!!!!!!!!
    How is this possible? Why in the first case the HTML tags are eliminated and in the second case they are not?
    Thanks,
    Margarita
    Edited by: user13312701 on 07-Sep-2010 08:51

    Doing various tests I found out that the problem is when I need to search in multiple columns of a table.
    That is when I create a user_datastore that uses a procedure that concatenates the columns.
    And especially when the data with the html tags is in a VARCHAR2 column.
    e.g
    --create the table*
    CREATE TABLE CONTENT_TRANS (content_trans_id NUMBER,
    main_text CLOB,
    title vARCHAR2(2000),
    oracle_text_column VARCHAR2(1));
    alter table "CONTENT_TRANS" add constraint CONTENT_PK primary key("CONTENT_TRANS_ID") ;
    --Insert dummy data*
    Insert into CONTENT_TRANS
    (CONTENT_TRANS_ID,MAIN_TEXT,TITLE)
    values
    (1,'lorem','lorem <p>qualification</p> 2.1 ');
    Insert into CONTENT_TRANS
    (CONTENT_TRANS_ID,MAIN_TEXT,TITLE)
    values
    (2,'lorem','lorem <br>qualification</br> 2.1 ');
    --CREATE THE procedure that concatenates main_text(CLOB) and title(VARCHAR2)*
    CREATE OR REPLACE PROCEDURE CONTENT_TRANS_PROC( p_id in rowid, p_lob IN OUT clob)
    IS
    BEGIN
    FOR c1 IN (SELECT main_text||' '||title data FROM content_trans WHERE ROWID = p_id)
    LOOP
    dbms_lob.copy( p_lob, c1.data,
    dbms_lob.getlength( c1.data ));
    END LOOP;
    END;
    --Create the user datastore*
    BEGIN
    ctx_ddl.create_preference( 'content_trans_datastore', 'user_datastore' );
    ctx_ddl.set_attribute( 'content_trans_datastore', 'procedure', 'CONTENT_TRANS_PROC' );
    END;
    --Create the index*
    CREATE INDEX content_trans_ot_idx ON content_trans(ORACLE_TEXT_COLUMN)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS ('datastore content_trans_datastore SYNC(ON COMMIT) filter ctxsys.null_filter section group ctxsys.html_section_group');
    exec ctx_doc.set_key_type('PRIMARY_KEY');
    --Perform the query
    SELECT SCORE(1),ct.content_trans_id, ctx_doc.snippet('content_trans_ot_idx', ct.content_trans_id, 'lorem') as snippet
    from content_trans ct
    where contains(ct.ORACLE_TEXT_COLUMN, 'lorem', 1) > 1;
    Results WITH NOT WANTED HTML TAGS:
    6     1     <b>lorem</b> <b>lorem</b> &lt;p&gt;qualification&lt;/p&gt; 2.1
    6     2     <b>lorem</b> <b>lorem</b> &lt;br&gt;qualification&lt;/br&gt; 2.1
    Edited by: user13312701 on 13-Oct-2010 01:18

  • How to insert an HTML link into a page

    Hello,
    We have a list of documents in a external document management system. We would like to present the list of documents to the user for retrieval from within any SRM HTML page.
    I was thinking of two different approaches:
    1) I would like to be able to insert an HTML link to a URL of documents for display to the end user.
    2) Alternatively, we might want to inject some javascript into the screen to handle the presentation of the links.
    We would like this functionality to work on any of the screens within SRM as global functionality.
    Any suggestions on how to customize SRM to handle this functionality request?
    (Will reward points very quickly)
    Thanks
    Edited by: Aaron Jack on Feb 15, 2008 7:02 PM
    Edited by: Aaron Jack on Feb 15, 2008 7:03 PM

    Hi,
    My project has a requirement to show URL in Bid Invitation screen. In turn, when user clicks that hyperlink, it will pop-up a web dynpro screen.
    Maybe this is the same with your need.
    In case this is the same, the trick is to define an additional field in bid invitation custom header with customized data element and customized domain.
    Then, defined conversion exit for the domain with javascript line such as "<html> bla bla </html>" to pop-up the web dynpro screen in modal dialog.
    The result will be as what I have above.
    Hopefully this can help you.

  • Custom html tags with JEditorPane

    I'm trying, to use my own tags within html in the JEditorPane. An insert parses without exception but the html in the pane is missing the custom tags that I attempted to insert. I have tried to use the 'setPreservesUnknownTags' command on the html document, but it appears to have no affect. This is the code I have been trying to use:
    edtHTML.insertHTML(docHTML, 0, "<p><my:link id=\"12\">ABC</my:link></p>", 0, 0, HTML.Tag.P);
    I have also tried
    edtHTML.insertHTML(docHTML, 0, "<my:link id=\"12\">ABC</my:link>", 0, 0, new HTML.UnknownTag("my:link"));
    Can anyone help?
    Thanks

    I have no example for custom Tags but I found out that every tag is stored as an attribute.
    You can access the attributes if you use a JTextPane. There is a method (i don't know the name yet I will find out tomorrow in the office) which gives you the AttributeSet of each Character at the Carent position. All characters have an attribute "name" and the value of this attribute should be the name of the tag you've inserted.
    The only problem is that I had to read out every character so it's quit slow.
    If you could find a better solution please let me know ([email protected]).
    Thank you.
    J&ouml;rn

  • Can't figure out how to insert an html within my template

    I've searched, but perhaps I am not using the correct terminology. I apologize if this has been addressed elsewhere.
    We have a vendor who is trying to mimic my webpage for our customers who sign on to her service. My problem is that I don't like having versions of our webpage outside our organization because I'll have to get them to update every time I make a change to our page. I know it will be forgotten at some point. What I'd like to do is set up a page on our site and insert their html content page within my template framework. There is a form that needs to link to their site so it needs to live on their server. I tried inserting an html, but it didn't work. I know in the olden days I used to be able to do this in PageMill. Now, I just can't figure out how to do it. Does anyone know the secret?
    Here is a sample page on my site showing what I'm trying to do: http://www.franklinebranch.com/TEST.html. I'm using DW CS5.
    Thanks for any suggestions. Anna

    That's what I was afraid of. Is IFrame a separate program?
    This is the vendor page: https://secure.powerpay.biz/r/fsb.aspx

  • How to use custom defined tags in uix in jdevloper 10g production

    can any one give me sample application for how to work with custom defined tags in uix with jedevloper 10g production
    thanks Venkat

    Hi Venkat,
    Maybe the reason for no one answering is because of lack of information in your post? What are you trying to do? Are you using JSP or UIX XML? Have you checked the online jdeveloper documentation? Have you checked the doc available in the JDeveloper release? Before we have more information we can't help you. Sorry
    Thanks,
    Jonas
    JDev Team

  • Can you insert a HTML tag in mail?

    Basically I want to replace a very long and messy hyperlink with one word (DIARY) as a signature on my emails. I believe this is called a HTML tag. Anybody have any ideas on how to do this?
    Thanks

    Hi
    assuming you  create a signature in Mail-Preferences-Signatures
    then do so, using the single word (or more) -
    select/highlight the part you want as a link & ctrl-click it, choosing Link - Add Link
    ( or use the Mail-Edit-Edit Link command, or the Command-K keyboard shortcut )
    copy/paste the web address you want.

  • How to turn of HTML tags in Email Messages?

    My BB8830 World Edition on Verizon continues to show full html tags - e.g. <http://www.oracle.com/dm/global/opn.gif> - instead of just the link, which makes any email with links extremely difficult to read as the full html tags display in the middle of a sentence or para.
    Any idea how to turn this off?

    You'll have to wait for Verizon to release OS 4.5 for your device.  Once you upgrade your device, you will be able to view HTML email.
    There are also third party packages (that you'd have to pay for) available to read HTML email, but the OS should be available within the next few months.  Then again it is Verizon, and they tend to drag their heels on updates, so....
    Jerry

  • How to put back html tags

    Hi, I have a program that reads an html file, parses the html tags, now I execute code, and then would like to append the original file with my results...
    How would I put back in the html code that I parsed out? Or would I have to go through it & search for where the information ends, like right before the </body> tag, and then write in html code there...
    What do u think?

    yes, what I did, was read in each line, parse and put into a new StringBuffer... and finally save this into an ArrayList to manipulate it in the program...
    What I'm doing now, is trying to rewrite the html file, by
    PrintWriter cout = new PrintWriter (new
                                  FileWriter ("scores.html"));
    and then
    cout.print("<html>");
    etc, etc...
    and fill in the scores as
    cout.print(<li>);
    cout.print(ArrayList.get(i)); //the saved score
    etc.
    Right now, this isn't writing to the html file, so I wonder if PrintWriter is the right thing to use...
    Thanx for ur help!

Maybe you are looking for