Menu

#15 Word Wrapping and XML Markup

open
None
5
2011-11-27
2006-10-20
discoleo
No

Word Wrapping and XML Markup

jEdit should be able to automatically format XML files
in a more advanced way.

e.g. <XML-TAG-1 ...><XML-TAG-2> should be split between
the 2 tags, i.e. between the ending ...> and the
beginning <... .

Currently, jEdit is NOT able to recognize this as a
valid word wrap splitting point.

Also, jEdit should be able to automatically indent and
format the XML in a more readable fashion, e.g.:
<XML-TAG-1 ...
_... TAG may continue IF it does NOT fit on one LINE
_<- BUT let it be slightly indented
_...> # END OF TAG
____<XML-TAG-2; INDENT IF nested within previous TAG

... and so on

This should all be done automatically.

I will attach a good file to test such options.

Discussion

  • discoleo

    discoleo - 2006-10-20

    A test file for advanced formatting/markup

     
  • Dale Anson

    Dale Anson - 2006-10-20

    Logged In: YES
    user_id=187628

    Just checking -- are you aware of the XMLIndenter plugin?
    It does a pretty good job of formatting xml files. I've
    attached a copy of your example file formatted with
    XMLIndenter for your perusal.

     
  • Dale Anson

    Dale Anson - 2006-10-20

    content.xml formatted with XMLIndenter plugin

     
  • Dale Anson

    Dale Anson - 2006-10-20

    Logged In: YES
    user_id=187628

    I should have mentioned that XMLIndenter is not a separate
    plugin anymore, it's part of the XML plugin and is
    compatible with the Beauty plugin.

     
  • discoleo

    discoleo - 2006-10-21

    Logged In: YES
    user_id=1530503

    Indeed, I missed the XML-plugin. [Sorry for this, my fault.]

    However, there are still 2 issues that would be great to
    implement:
    - IF I choose word-wrap, and the TAG is continued on a
    second line, it would be nice to indent the 2-... lines by
    1-2 spaces:
    <TAG-START ...
    _<- TAG continues BUT is indented a little bit

    - again, IF word-wrap is selected, I would like to have some
    other line-breaking points, like after ";" in a TAG (rare
    occurence, but may occur)

    Nevertheless, great program!

     
  • Alan Ezust

    Alan Ezust - 2006-12-18
    • assigned_to: nobody --> robmckinnon
     
  • Alan Ezust

    Alan Ezust - 2006-12-18

    Logged In: YES
    user_id=935841
    Originator: NO

    Assigning to Rob McKinnon, who wrote the xmlindenter.

     
  • Dale Anson

    Dale Anson - 2007-09-30

    Logged In: YES
    user_id=187628
    Originator: NO

    If Rob doesn't respond in the next few days, I'll take this one on.

     
  • Alan Ezust

    Alan Ezust - 2011-11-27
    • assigned_to: robmckinnon --> daleanson
     

Log in to post a comment.