Community
    • Login

    Can I input filename into html code automatically ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.0k 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.
    • Konrad WielechowskiK
      Konrad Wielechowski
      last edited by

      Hello.

      I have a problem. I have 500+ templates of web auctions, and the code starts from:

      <style type=“text/css”>

      In every file. The first line is always empty, and the code starts form second line. I wanted to put there filename inside tags:

      <!-- -->

      ,so for ex. if the filename is KMA50.htm I would like to have there <!–KMA50–>

      I was trying to do this by “regular phrases”, but this can’t read file name ??
      Is there any solution to achieve something like that ?

      Thank. Have a nice day.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Konrad Wielechowski
        last edited by

        @Konrad-Wielechowski

        record a macro
        select first tab and place cursor anywhere in this tab

        press record
        type ctrl + home(pos1/origin)
        type <!–
        rightclick on tab and select Filename to Clipboard
        press ctrl+v
        type -->
        press ctrl+pagedown
        stop macro

        replay macro as many times as you need.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • Konrad WielechowskiK
          Konrad Wielechowski
          last edited by

          Thank you,

          You saved my day (-:

          Cheers.

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