Community
    • Login

    Complete Newbie

    Scheduled Pinned Locked Moved General Discussion
    wordhelpsourcecode
    4 Posts 4 Posters 2.7k Views 2 Watching
    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.
    • Amelia TriscoA Offline
      Amelia Trisco
      last edited by

      Hi,
      I’ve recently installed Notepad++ and needed it edit the source code of a .docx Word Document file to change the internal ‘strings’ of text whilst maintaining the original outward appearance of the document. In order to do this do I need to convert the .docx to a .zip and then locate the ‘document.xtml’ folder or can I just put in the actual .docx to change the source code?

      Thanks in advance if you can help - this is kind of an obscure question.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Amelia Trisco
        last edited by

        @Amelia-Trisco

        npp isn’t the right tool to do that.
        LibreOffice or OpenOffice can handle .docx files very well.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • gstaviG Offline
          gstavi
          last edited by

          @Amelia-Trisco
          After reading your question I googled a bit and found out that docx is indeed a zip file.
          While I agree with @Claudia-Frank that Notepad++ is not the ideal tool for them, if for some reason you want to use it then you will need to:

          • Unzip the docx file into some directory.
          • Edit the XML files that were extracted.
          • Rezip the files into docx and hope that everything is still consistent.
          1 Reply Last reply Reply Quote 0
          • Per IsaksonP Offline
            Per Isakson
            last edited by

            @Amelia-Trisco

            If you want to interactively edit some string values, I think you should consider to use an XML Editor, e.g. XML Notepad. See: Comparison of XML editors

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors