Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Can I input filename into html code automatically ?

    Help wanted · · · – – – · · ·
    2
    3
    1860
    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 Wielechowski
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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 Wielechowski
          Konrad Wielechowski last edited by

          Thank you,

          You saved my day (-:

          Cheers.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors