Question
Custom Tag Feature
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
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
