quick generate html



  • Is there a quick way to generate HTML, like sublime text if i type html and hit tab it generate all my basic html
    like to get this

    <html lang="en">
    <head>
    	<meta charset="UTF-8">
    	<title></title>
    	<link rel="stylesheet" type="text/css" href="">
    </head>
    <body>
    
    </body>
    </html>
    


  • Hello Chris,

    I, personally, would do that, with a simple N++ macro :-)

    Just, insert the text, below, in the macro node of the shortcuts.xml configuration file, with an OTHER editor than Notepad++ ( IMPORTANT ) and save it.

    <Macro name="New HTML Text" Ctrl="no" Alt="no" Shift="no" Key="0">
        <Action type="2" message="0" wParam="41001" lParam="0" sParam="" />
        <Action type="2" message="0" wParam="46005" lParam="0" sParam="" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="!" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="D" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="O" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="C" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="T" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="Y" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="P" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="E" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam=" " />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="H" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="T" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="M" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="L" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="h" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="m" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="l" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam=" " />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="l" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="n" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="g" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="=" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="n" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="h" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="d" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="m" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam=" " />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="c" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="h" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="s" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="=" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="U" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="T" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="F" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="-" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="8" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="i" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="l" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="/" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="i" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="l" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="l" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="i" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="n" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="k" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam=" " />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="l" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="=" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="s" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="l" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="s" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="h" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam=" " />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="p" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="=" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="x" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="/" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="c" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="s" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="s" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam=" " />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="h" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="f" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="=" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam='&quot;' />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="/" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="h" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="d" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="b" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="o" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="d" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="/" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="b" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="o" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="d" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&lt;" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="/" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="h" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="m" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="l" />
        <Action type="1" message="2170" wParam="0" lParam="0" sParam="&gt;" />
    </Macro>
    

    Then, re-start N++, and run this new macro Macro - New HTML Text. It’s works nice, on my 6.8.1 configuration ! Of course, you may assign a shortcut to that macro !

    Notes :

    • The first line names the macro and define a possible shortcut

    • The second line opens a new tab, in N++

    • The third line selects the HTML language

    • The following lines, just, insert literal text, one character after an other :-)

    Enjoy N++ !!

    Best Regards

    guy038



  • Hey thanks, I tried that but didn’t work don’t get the Macro - New HTML Text
    using n++ 6.8.5

    <code>
    <NotepadPlus>
    <InternalCommands />
    <Macros>
    <Macro name=“New HTML Text” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”>
    <Action type=“2” message=“0” wParam=“41001” lParam=“0” sParam="" />
    <Action type=“2” message=“0” wParam=“46005” lParam=“0” sParam="" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="!" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“D” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“O” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“C” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“T” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“Y” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“P” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“E” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“H” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“T” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“M” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“L” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“h” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“m” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“l” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“l” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“a” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“n” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“g” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="=" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“n” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“h” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“a” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“d” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“m” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“a” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“c” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“h” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“a” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“r” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“s” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="=" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“U” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“T” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“F” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="-" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“8” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“i” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“l” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="/" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“i” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“l” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“l” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“i” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“n” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“k” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“r” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“l” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="=" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“s” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“y” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“l” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“s” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“h” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“y” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“p” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="=" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“x” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="/" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“c” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“s” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“s” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“h” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“r” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“f” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="=" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=’"’ />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="/" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“h” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“e” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“a” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“d” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“b” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“o” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“d” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“y” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="/" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“b” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“o” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“d” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“y” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=" " />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="<" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam="/" />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“h” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“t” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“m” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=“l” />
    <Action type=“1” message=“2170” wParam=“0” lParam=“0” sParam=">" />
    </Macro>
    </Macros>
    <UserDefinedCommands>
    <Command name=“Launch in Firefox” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“88”>firefox “$(FULL_CURRENT_PATH)”</Command>
    <Command name=“Launch in IE” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“73”>iexplore “$(FULL_CURRENT_PATH)”</Command>
    <Command name=“Launch in Chrome” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“82”>chrome “$(FULL_CURRENT_PATH)”</Command>
    <Command name=“Launch in Safari” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“70”>safari “$(FULL_CURRENT_PATH)”</Command>
    <Command name=“Get php help” Ctrl=“no” Alt=“yes” Shift=“no” Key=“112”>http://www.php.net/$(CURRENT_WORD)</Command>
    <Command name=“Google Search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“113”>https://www.google.com/search?q=$(CURRENT_WORD)</Command>
    <Command name=“Wikipedia Search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“114”>https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command>
    <Command name=“Open file” Ctrl=“no” Alt=“yes” Shift=“no” Key=“116”>$(NPP_DIRECTORY)\notepad++.exe $(CURRENT_WORD)</Command>
    <Command name=“Open in another instance” Ctrl=“no” Alt=“yes” Shift=“no” Key=“117”>$(NPP_DIRECTORY)\notepad++.exe $(CURRENT_WORD) -nosession -multiInst</Command>
    <Command name=“Send via Outlook” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“79”>outlook /a “$(FULL_CURRENT_PATH)”</Command>
    </UserDefinedCommands>
    </code>



  • Hi Chris,

    Don’t understand ? I’ve just downloaded the 7z archive for portable version of N++ v6.8.5 and extracted all its contents to a new folder.

    Then, after adding this new macro to the shortcuts.xml file and starting N++, the action Macro - New HTML Text DID create a new HTML file, with the general HTML frame !!

    • Are you sure that you added this macro, in the right file ? As for me, I generally use portable versions of N++. but, if you use the N++'s installer, the location of your active configuration files should be in %appdata%\Roaming\Notepad++ ( or something like that ! )

    • Did you stop any instance of N++, before and use an OTHER editor, than N++, to add this new macro to Shortcuts.xml ?

    • May be, a no default plugin, installed, could break the macro behaviour, but I don’t believe it ?

    Cheers,

    guy038



  • ok found the problem working correctly now :) thanks for the help
    I first changed it in the “C:\Program Files (x86)\Notepad++”
    now tried it in the “%appdata%\Roaming\Notepad++” folder and it worked :)
    thansk for the help



  • Better idea is save a macro and create shortcut. Can be paste finished code and save macro without integration with files n++.



  • Hello Mateusz,

    May be I miss something obvious, but I didn’t understand exactly, what you mean, about the possibility to save a macro without integration to N++ files !

    Could you develop, a bit, your idea, please ? Many thanks !

    Best Regards,

    guy038



  • In menu bar on the right you have button “start record” screen > http://www2.zippyshare.com/v/bQUUhfVs/file.html



  • Hi Chris and Matteusz,

    Oh yes, of course ! BTW, instead of thinking about complicated things, we could, simply, have a shortcut to a simple text file, which would contain the general HTML template, as a back-up. Then a simple CTRL-C / CTRL-V in a new tab and selection of the HTML language would do exactly the same job !

    And the time for these few simple actions is, probably, very small, compared to the one needed to get the right HTML file finished and bugs free, isn’t it ?

    Cheers,

    guy038


Log in to reply