Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C Programmer, please help!

Status
Not open for further replies.

marcoBR

Programmer
Apr 20, 2001
7
BR
Hi!!!

I'm needing to change a "very simple" behavior of an opensource C based software, but I haven't any experience on C language.

Ok man, let's go!

The program is "HTML Tidy" and you can obtain the source code
and reference material respectively at:

-
-
This is a great program to tidy and format your dirty html.

The problem is that it doesn't work if it encounter unknown elements(tags)
in html. Then you must declare these unknown
elements(tags) for properly works, what isn't a good idea in our XML days.

Thus I need help to suppress this stupid behavior, making it accept any
unknown elements(tags).

I believe that isn't hard to change the piece of code to accomplish it, but
as I said, I'm ignorant in the C world.

Can you understand me??? :(


Thanks in advance,

marcoBR

btw, sorry 4 my english...
 
Linked from the homepage/documentation:

Teaching Tidy about new tags!

You can teach Tidy about new tags by declaring them in the configuration file, the syntax is:

new-inline-tags: tag1, tag2, tag3
new-empty-tags: tag1, tag2, tag3
new-blocklevel-tags: tag1, tag2, tag3
new-pre-tags: tag1, tag2, tag3
The same tag can be defined as empty and as inline or as empty and as block.

These declarations can be combined to define an a new empty inline or empty block element, but you are not advised to declare tags as being both inline and block!

Note that the new tags can only appear where Tidy expects inline or block-level tags respectively. This means you can't (yet) place new tags within the document head or other contexts with restricted content models. So far the most popular use of this feature is to allow Tidy to be applied to Cold Fusion files.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top