Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By danmurf on
Hi
I was wondering if it is possible to make the code output by Drupal indent along with the XHTML of the page design? I am using a system of tabs to keep a track of parent items, and it would look really cool if the content generated by the CMS was also indented along with the parent items. Any advice appreciated.
Thanks
Comments
Anyone?
Anyone?
a picture's worth...
do you have a screenshot or, better yet, an example somewhere we can look at?
- Corey
Sorry I don't at the moment,
Sorry I don't at the moment, but I can try and get something together if it helps?
What I mean is I ident all my html code like this:
etc. So when I add a part to the template which relates to the cms, can I make the code that the cms generates indent to the same level that the html is at?
http://drupal.org/project/htm
http://drupal.org/project/htmltidy may be a good place to start.