• Login
Community
  • Login

MediaWiki self-closing reference tags

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 2 Posters 3.6k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Michael Horvath
    last edited by Dec 19, 2015, 5:29 AM

    I downloaded the three MediaWiki UDLs from here:

    http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files

    However, they all fail on self-closing reference tags. For instance:

    <ref name=“fundamentals”/>

    How do I fix this? Thanks!

    C 1 Reply Last reply Dec 20, 2015, 7:33 PM Reply Quote 0
    • C
      Claudia Frank @Michael Horvath
      last edited by Dec 20, 2015, 7:33 PM

      Hello Michael-Horvath,

      may I ask why they fail?
      They are defined in delimiter 5 and style is green underlined which seems to be happen.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • M
        Michael Horvath
        last edited by Dec 21, 2015, 7:55 AM

        The UDL looks for “<ref” and tries to close with “</ref>”. But if there is instead a “<ref name=fundamentals/>” then the closing condition is missing.

        1 Reply Last reply Reply Quote 0
        • M
          Michael Horvath
          last edited by Dec 21, 2015, 8:22 AM

          Here is an article where you can observe the problem, beginning at line 16.

          https://en.wikipedia.org/wiki/Dresden_Triptych

          1 Reply Last reply Reply Quote 0
          • C
            Claudia Frank
            last edited by Dec 21, 2015, 8:40 PM

            Hello Michael Horvath,

            I guess I understand what you mean.

            <ref name=“Pächt83”/> and confirmed with the 1959 discovery of …

            is painted in green underlined, whereas

            <ref name=“Pächt83”/>

            should be the only one and the text afterwards should be again in black, correct?

            Contrary to

            <ref name=whatever> here some text </ref>

            where everything should be painted in green and underlined.

            Afaik, having two different closing tags for one opening tag isn’t supported yet.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            4 out of 5
            • First post
              4/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors