Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit annotated source and units to be rendered in HTML5 #87

Open
delphidabbler opened this issue Dec 23, 2022 · 3 comments
Open

Permit annotated source and units to be rendered in HTML5 #87

delphidabbler opened this issue Dec 23, 2022 · 3 comments
Assignees
Labels
accepted Accepted for implementation / fixing feature request Request for a new feature

Comments

@delphidabbler
Copy link
Owner

There's already the option to render annotated source code and units in XHTML. It would be useful to update this to HTML5.

@delphidabbler delphidabbler self-assigned this Dec 23, 2022
@delphidabbler delphidabbler added feature request Request for a new feature considering Issue under consideration. May be accepted or rejected labels Dec 23, 2022
@delphidabbler
Copy link
Owner Author

Could either update or (more likely) provide as an additional option.

@delphidabbler
Copy link
Owner Author

May need to change THTML advanced record in UHTMLUtils into an abstract static class and derive two new classes from it: TXHTMLTag and THTML5Tag.

These classes would differ only in how they render simple tags.

It would be better to rename THTML as THTMLTag, regardless of whether it is changed into a class, because that better describes what it does. Additionally, changing the name would aid in changing all current references to THTML to TXHTMLTag.

@delphidabbler delphidabbler moved this to Considering in CodeSnip May 23, 2023
@delphidabbler delphidabbler added accepted Accepted for implementation / fixing and removed considering Issue under consideration. May be accepted or rejected labels Jul 18, 2024
@delphidabbler delphidabbler moved this from Considering to Accepted in CodeSnip Jul 18, 2024
@delphidabbler
Copy link
Owner Author

Although it would go against good OOP design, given the change would only be to the rendering of simple tags, maybe it would be much simpler to pass a parameter to the relevant method(s) to specify either XHTML or HTML5.

Rather than a Boolean typed parameter such as IsHTML5, an enumerated type parameter would document intention better, such as:

type
  THTMLVersion = (
    XHTML,
    HTML5
  );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Accepted for implementation / fixing feature request Request for a new feature
Projects
Status: Accepted
Development

No branches or pull requests

1 participant