Skip to main content
Known Participant
February 20, 2007
Question

Custom Tag Feature

  • February 20, 2007
  • 1 reply
  • 673 views
All:

I have ran into an issue that seems to need some extensibility.

I have created a custom tag that my users are allowed to enter when editing HTML documents. I have added my custom tag to the tag library and also added it to the validator so there would be no issues when validating. (it does not matter that it is not valid HTML)

So my problem is this:
When users enter the custom tag into their document i would like the inner text to change color when viewing in design view. (for example: the way an H1 tag would render)

some notes:
- Users are only editing independent HTML files and the files are in various directories and are not associated with any web sites. We use DW as a stand alone HTML editor.
- I do not want any user interaction. Meaning i do not want the user to have to enter any CSS info or attach/create any Design-Time CSS.

Some thoughts on how I would like to accomplish this:
- Possibly inject some CSS code when the file is being opened. So the CSS is already in place when the file is open in DW. I am not sure how or where to put any code to intercept the opening of the file.
- Attach some kind of default CSS or Design-Time CSS to the DW application, so everytime a file is opened in DW this CSS is somehow associated with it.

Anyone have any ideas or thoughts?

Thanks,
kscap
This topic has been closed for replies.

1 reply

Inspiring
February 21, 2007
You can do this with a translator, see the extending dreamweaver docs for
details.

--
Kevin Marshall
WebXeL.com Ltd
http://www.webxel.com

ASP.NET Dreamweaver Extensions
http://www.webxel-dw.co.uk
"kscap" <webforumsuser@macromedia.com> wrote in message
news:erfi1t$43f$1@forums.macromedia.com...
> All:
>
> I have ran into an issue that seems to need some extensibility.
>
> I have created a custom tag that my users are allowed to enter when
> editing
> HTML documents. I have added my custom tag to the tag library and also
> added it
> to the validator so there would be no issues when validating. (it does not
> matter that it is not valid HTML)
>
> So my problem is this:
> When users enter the custom tag into their document i would like the inner
> text to change color when viewing in design view. (for example: the way an
> H1
> tag would render)
>
> some notes:
> - Users are only editing independent HTML files and the files are in
> various
> directories and are not associated with any web sites. We use DW as a
> stand
> alone HTML editor.
> - I do not want any user interaction. Meaning i do not want the user to
> have
> to enter any CSS info or attach/create any Design-Time CSS.
>
> Some thoughts on how I would like to accomplish this:
> - Possibly inject some CSS code when the file is being opened. So the CSS
> is
> already in place when the file is open in DW. I am not sure how or where
> to put
> any code to intercept the opening of the file.
> - Attach some kind of default CSS or Design-Time CSS to the DW
> application, so
> everytime a file is opened in DW this CSS is somehow associated with it.
>
> Anyone have any ideas or thoughts?
>
> Thanks,
> kscap
>


kscapAuthor
Known Participant
February 21, 2007
quote:

Originally posted by: Newsgroup User
You can do this with a translator, see the extending dreamweaver docs for
details.

--
Kevin Marshall
WebXeL.com Ltd
http://www.webxel.com

ASP.NET Dreamweaver Extensions
http://www.webxel-dw.co.uk
"kscap" <webforumsuser@macromedia.com> wrote in message
news:erfi1t$43f$1@forums.macromedia.com...
> All:
>
> I have ran into an issue that seems to need some extensibility.
>
> I have created a custom tag that my users are allowed to enter when
> editing
> HTML documents. I have added my custom tag to the tag library and also
> added it
> to the validator so there would be no issues when validating. (it does not
> matter that it is not valid HTML)
>
> So my problem is this:
> When users enter the custom tag into their document i would like the inner
> text to change color when viewing in design view. (for example: the way an
> H1
> tag would render)
>
> some notes:
> - Users are only editing independent HTML files and the files are in
> various
> directories and are not associated with any web sites. We use DW as a
> stand
> alone HTML editor.
> - I do not want any user interaction. Meaning i do not want the user to
> have
> to enter any CSS info or attach/create any Design-Time CSS.
>
> Some thoughts on how I would like to accomplish this:
> - Possibly inject some CSS code when the file is being opened. So the CSS
> is
> already in place when the file is open in DW. I am not sure how or where
> to put
> any code to intercept the opening of the file.
> - Attach some kind of default CSS or Design-Time CSS to the DW
> application, so
> everytime a file is opened in DW this CSS is somehow associated with it.
>
> Anyone have any ideas or thoughts?
>
> Thanks,
> kscap
>





thanks. i will take a look in the docs, in the meantime is this something that will transparent to the user? I can't have the user add any info or attributes to the tag itself.

kscap