How I'm using Notepad++ to add [CODE][/CODE] tags in bulk.



Get files into a single folder, highlight them, right click and then Edit with Notepad++ (make sure you had no other active files in Notepad++).



To add the [CODE] tag at the beginning of each file:
In Notepad++ go [Search] then [Replace...].

  • Find what: (.*)
  • Replace with: [CODE]\r\n\1
  • Search Mode = Regular expression AND matches newline enabled.

Once set up, click the [Replace All in All Opened Documents]




To add the [/CODE] tag at the end of each file:
In Notepad++ go [Search] then [Replace...].

  • Find what: (.*)
  • Replace with: \1\n[/CODE]
  • Search Mode = Regular expression AND matches newline enabled.

Once set up, click the [Replace All in All Opened Documents]




With that, all the blockmaps or adpmap files you had opened up will now have the [CODE][/CODE] tags, so you can just copy/paste them into the forum post.