Can I input filename into html code automatically ?

  • 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.

  • @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.


  • Thank you,

    You saved my day (-:


Log in to reply