Can I make an auto-increment thingie in Notepad++? Announcing the arrival of Valued Associate...

Is there hard evidence that the grant peer review system performs significantly better than random?

Generate an RGB colour grid

Is there any word for a place full of confusion?

Chinese Seal on silk painting - what does it mean?

What is "gratricide"?

What does it mean that physics no longer uses mechanical models to describe phenomena?

How to write the following sign?

How to compare two different files line by line in unix?

Crossing US/Canada Border for less than 24 hours

Should I use a zero-interest credit card for a large one-time purchase?

Do any jurisdictions seriously consider reclassifying social media websites as publishers?

AppleTVs create a chatty alternate WiFi network

Monolithic + MicroServices

What is the difference between globalisation and imperialism?

How does the math work when buying airline miles?

How to get all distinct words within a set of lines?

How would a mousetrap for use in space work?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

How do I use the new nonlinear finite element in Mathematica 12 for this equation?

I am having problem understanding the behavior of below code in JavaScript

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

How could we fake a moon landing now?

What are the diatonic extended chords of C major?

What is this clumpy 20-30cm high yellow-flowered plant?



Can I make an auto-increment thingie in Notepad++?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Auto format document with Notepad++HTML Tag Auto Complete in Notepad++?Notepad++ auto complete HTML end tags after </ (like Dreamweaver does)Quickly increment selected numbers in Notepad++Auto hide Notepad++ console dialog?Increment Number in notepad++Auto newline in notepad++Auto indent in Notepad++Notepad++ auto complete deleteNotepad++ auto indent html code while writing





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm trying to do this DAISY talking book thing, and instead of using Dolphin Publisher's HTML thingie (which is hideous), I thought I'd play with doing it without the GUI, in notepad++, since I know basic HTML.



So I need to surround each sentence with



<span class="sentence" id="aiw_0002"> text of sentence </span>


And of course that ID number needs to increment. Is there a magic way I can make a keystroke/macro that would do that? Basically paste </span><span class="sentence" id="something_xxxx"> where X goes up 1 each time?



My non-fancy way of doing it to copy the span statement (stopping before final-quote-mark-and-greater-than-sign), into Excel2016, doing a second one (0003) to establish the pattern, and do the click-drag thing to autopopulate. I just have to add in the last tip of the tag (if I don't end with a numeral, there's no auto-increment thingie).



I can't install anything - government computer, things are pretty locked. And no one else in my area uses Dolphin or knows web stuff at all.










share|improve this question























  • Are you able to create and link a javascript file? If you can, you might be able to use javascript to set the ids for each sentence when the page is loaded, rather than have them defined in the html

    – Trenly
    7 hours ago


















0















I'm trying to do this DAISY talking book thing, and instead of using Dolphin Publisher's HTML thingie (which is hideous), I thought I'd play with doing it without the GUI, in notepad++, since I know basic HTML.



So I need to surround each sentence with



<span class="sentence" id="aiw_0002"> text of sentence </span>


And of course that ID number needs to increment. Is there a magic way I can make a keystroke/macro that would do that? Basically paste </span><span class="sentence" id="something_xxxx"> where X goes up 1 each time?



My non-fancy way of doing it to copy the span statement (stopping before final-quote-mark-and-greater-than-sign), into Excel2016, doing a second one (0003) to establish the pattern, and do the click-drag thing to autopopulate. I just have to add in the last tip of the tag (if I don't end with a numeral, there's no auto-increment thingie).



I can't install anything - government computer, things are pretty locked. And no one else in my area uses Dolphin or knows web stuff at all.










share|improve this question























  • Are you able to create and link a javascript file? If you can, you might be able to use javascript to set the ids for each sentence when the page is loaded, rather than have them defined in the html

    – Trenly
    7 hours ago














0












0








0








I'm trying to do this DAISY talking book thing, and instead of using Dolphin Publisher's HTML thingie (which is hideous), I thought I'd play with doing it without the GUI, in notepad++, since I know basic HTML.



So I need to surround each sentence with



<span class="sentence" id="aiw_0002"> text of sentence </span>


And of course that ID number needs to increment. Is there a magic way I can make a keystroke/macro that would do that? Basically paste </span><span class="sentence" id="something_xxxx"> where X goes up 1 each time?



My non-fancy way of doing it to copy the span statement (stopping before final-quote-mark-and-greater-than-sign), into Excel2016, doing a second one (0003) to establish the pattern, and do the click-drag thing to autopopulate. I just have to add in the last tip of the tag (if I don't end with a numeral, there's no auto-increment thingie).



I can't install anything - government computer, things are pretty locked. And no one else in my area uses Dolphin or knows web stuff at all.










share|improve this question














I'm trying to do this DAISY talking book thing, and instead of using Dolphin Publisher's HTML thingie (which is hideous), I thought I'd play with doing it without the GUI, in notepad++, since I know basic HTML.



So I need to surround each sentence with



<span class="sentence" id="aiw_0002"> text of sentence </span>


And of course that ID number needs to increment. Is there a magic way I can make a keystroke/macro that would do that? Basically paste </span><span class="sentence" id="something_xxxx"> where X goes up 1 each time?



My non-fancy way of doing it to copy the span statement (stopping before final-quote-mark-and-greater-than-sign), into Excel2016, doing a second one (0003) to establish the pattern, and do the click-drag thing to autopopulate. I just have to add in the last tip of the tag (if I don't end with a numeral, there's no auto-increment thingie).



I can't install anything - government computer, things are pretty locked. And no one else in my area uses Dolphin or knows web stuff at all.







notepad++ html






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 10 hours ago









AprilApril

1087




1087













  • Are you able to create and link a javascript file? If you can, you might be able to use javascript to set the ids for each sentence when the page is loaded, rather than have them defined in the html

    – Trenly
    7 hours ago



















  • Are you able to create and link a javascript file? If you can, you might be able to use javascript to set the ids for each sentence when the page is loaded, rather than have them defined in the html

    – Trenly
    7 hours ago

















Are you able to create and link a javascript file? If you can, you might be able to use javascript to set the ids for each sentence when the page is loaded, rather than have them defined in the html

– Trenly
7 hours ago





Are you able to create and link a javascript file? If you can, you might be able to use javascript to set the ids for each sentence when the page is loaded, rather than have them defined in the html

– Trenly
7 hours ago










1 Answer
1






active

oldest

votes


















0














Based on this Stack Overflow answer:




  • Hold the Alt key and use your mouse to select the column of numbers that you wish to change.


  • Choose Edit → Column Editor... ( Alt+C ).


  • Select the Number to Insert radio button option and fill in the Initial number: and Increase by: values.


  • Click OK to apply your changes.



Caveats



The basic drawback for your use case (besides manual selection) is that there are no leading zeros added automatically. This can be overcome with one or more regex replacements, but isn't ideal. For example, to add three leading zeros to your given line(s) (after alterations):




  • Select your lines (e.g. those with 0-9).


  • Search → Replace... ( Ctrl+H ).


  • ex. Find what: (.*)aiw_(.*)Replace with: $1aiw_000$2.


  • Mark the In Selection checkbox.


  • Make sure the Search Mode → Regular expression... radio button option is selected (I also had the Wrap around checkbox selected, but this may or may not need to be toggled).


  • Replace All



In the regular expression above, the first (.*) and second (.*) correspond to the groups $1 and $2, respectively.





Note that the regular expression above is just an example. You may need to alter it in order to obtain desired/consistent behavior based on your HTML code.






Is there a magic way I can make a keystroke/macro that would do that?




Notepad++ has the ability to record macros, yes. That said, it might be difficult to come up with one that would fit all of the steps above into one go (though you certainly could have several for various stages of the process).






share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1427168%2fcan-i-make-an-auto-increment-thingie-in-notepad%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Based on this Stack Overflow answer:




    • Hold the Alt key and use your mouse to select the column of numbers that you wish to change.


    • Choose Edit → Column Editor... ( Alt+C ).


    • Select the Number to Insert radio button option and fill in the Initial number: and Increase by: values.


    • Click OK to apply your changes.



    Caveats



    The basic drawback for your use case (besides manual selection) is that there are no leading zeros added automatically. This can be overcome with one or more regex replacements, but isn't ideal. For example, to add three leading zeros to your given line(s) (after alterations):




    • Select your lines (e.g. those with 0-9).


    • Search → Replace... ( Ctrl+H ).


    • ex. Find what: (.*)aiw_(.*)Replace with: $1aiw_000$2.


    • Mark the In Selection checkbox.


    • Make sure the Search Mode → Regular expression... radio button option is selected (I also had the Wrap around checkbox selected, but this may or may not need to be toggled).


    • Replace All



    In the regular expression above, the first (.*) and second (.*) correspond to the groups $1 and $2, respectively.





    Note that the regular expression above is just an example. You may need to alter it in order to obtain desired/consistent behavior based on your HTML code.






    Is there a magic way I can make a keystroke/macro that would do that?




    Notepad++ has the ability to record macros, yes. That said, it might be difficult to come up with one that would fit all of the steps above into one go (though you certainly could have several for various stages of the process).






    share|improve this answer






























      0














      Based on this Stack Overflow answer:




      • Hold the Alt key and use your mouse to select the column of numbers that you wish to change.


      • Choose Edit → Column Editor... ( Alt+C ).


      • Select the Number to Insert radio button option and fill in the Initial number: and Increase by: values.


      • Click OK to apply your changes.



      Caveats



      The basic drawback for your use case (besides manual selection) is that there are no leading zeros added automatically. This can be overcome with one or more regex replacements, but isn't ideal. For example, to add three leading zeros to your given line(s) (after alterations):




      • Select your lines (e.g. those with 0-9).


      • Search → Replace... ( Ctrl+H ).


      • ex. Find what: (.*)aiw_(.*)Replace with: $1aiw_000$2.


      • Mark the In Selection checkbox.


      • Make sure the Search Mode → Regular expression... radio button option is selected (I also had the Wrap around checkbox selected, but this may or may not need to be toggled).


      • Replace All



      In the regular expression above, the first (.*) and second (.*) correspond to the groups $1 and $2, respectively.





      Note that the regular expression above is just an example. You may need to alter it in order to obtain desired/consistent behavior based on your HTML code.






      Is there a magic way I can make a keystroke/macro that would do that?




      Notepad++ has the ability to record macros, yes. That said, it might be difficult to come up with one that would fit all of the steps above into one go (though you certainly could have several for various stages of the process).






      share|improve this answer




























        0












        0








        0







        Based on this Stack Overflow answer:




        • Hold the Alt key and use your mouse to select the column of numbers that you wish to change.


        • Choose Edit → Column Editor... ( Alt+C ).


        • Select the Number to Insert radio button option and fill in the Initial number: and Increase by: values.


        • Click OK to apply your changes.



        Caveats



        The basic drawback for your use case (besides manual selection) is that there are no leading zeros added automatically. This can be overcome with one or more regex replacements, but isn't ideal. For example, to add three leading zeros to your given line(s) (after alterations):




        • Select your lines (e.g. those with 0-9).


        • Search → Replace... ( Ctrl+H ).


        • ex. Find what: (.*)aiw_(.*)Replace with: $1aiw_000$2.


        • Mark the In Selection checkbox.


        • Make sure the Search Mode → Regular expression... radio button option is selected (I also had the Wrap around checkbox selected, but this may or may not need to be toggled).


        • Replace All



        In the regular expression above, the first (.*) and second (.*) correspond to the groups $1 and $2, respectively.





        Note that the regular expression above is just an example. You may need to alter it in order to obtain desired/consistent behavior based on your HTML code.






        Is there a magic way I can make a keystroke/macro that would do that?




        Notepad++ has the ability to record macros, yes. That said, it might be difficult to come up with one that would fit all of the steps above into one go (though you certainly could have several for various stages of the process).






        share|improve this answer















        Based on this Stack Overflow answer:




        • Hold the Alt key and use your mouse to select the column of numbers that you wish to change.


        • Choose Edit → Column Editor... ( Alt+C ).


        • Select the Number to Insert radio button option and fill in the Initial number: and Increase by: values.


        • Click OK to apply your changes.



        Caveats



        The basic drawback for your use case (besides manual selection) is that there are no leading zeros added automatically. This can be overcome with one or more regex replacements, but isn't ideal. For example, to add three leading zeros to your given line(s) (after alterations):




        • Select your lines (e.g. those with 0-9).


        • Search → Replace... ( Ctrl+H ).


        • ex. Find what: (.*)aiw_(.*)Replace with: $1aiw_000$2.


        • Mark the In Selection checkbox.


        • Make sure the Search Mode → Regular expression... radio button option is selected (I also had the Wrap around checkbox selected, but this may or may not need to be toggled).


        • Replace All



        In the regular expression above, the first (.*) and second (.*) correspond to the groups $1 and $2, respectively.





        Note that the regular expression above is just an example. You may need to alter it in order to obtain desired/consistent behavior based on your HTML code.






        Is there a magic way I can make a keystroke/macro that would do that?




        Notepad++ has the ability to record macros, yes. That said, it might be difficult to come up with one that would fit all of the steps above into one go (though you certainly could have several for various stages of the process).







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 3 hours ago

























        answered 3 hours ago









        AnaksunamanAnaksunaman

        5,86321423




        5,86321423






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1427168%2fcan-i-make-an-auto-increment-thingie-in-notepad%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

            Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...