Community
    • Login

    Can I input filename into html code automatically ?

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

          Thank you,

          You saved my day (-:

          Cheers.

          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