Item Level: ?
Drop Level: ?
Base Type: ?
Map Tier: ?
Gem Level: ?
Stack Size: ?
Auto-indent while typing
Using Item Filters
Simply save your script to a file with the extension ".filter" in
Documents\My Games\Path of Exile.
Then you open the options menu in the game, switch to the UI tab and scroll all the way down to the Item Filter setting where you can select your filter in the dropdown list. You also need to enable the Always Highlight option, otherwise the game will always hide all items by default. Pressing Alt will show all items that were hidden by the item filter.
Changing the Item Set
You can share your script with others using Pastebin.
To do this, upload it to pastebin and look at the url of that paste.
It will look like http://pastebin.com/uHyVQ7Ti.
Copy the pastebin id found at the end of that url and append it to the poedit url like this: http://bschug.github.io/poedit/poedit.html#uHyVQ7Ti.
This link will automatically display the content of your pastebin in the script window.
You can also share custom items sets like this. If your item definition is stored at http://pastebin.com/19mWjnKb, then http://bschug.github.io/poedit/poedit.html#items=19mWjnKb will create a version of the preview tool that uses your item set.
You can combine script and item pastebins by separating them with a comma: http://bschug.github.io/poedit/poedit.html#xu2fiBCm,items=19mWjnKb
Note that the pastebin integration requires an actual reload of the page to work, so if you're playing around with this feature and it seems like the page is not reloading or applying your changes correctly, try pressing F5 or opening it in a new tab. This is a problem only when you are editing the url in your browser's address bar while the page is open. Clicking the link should always work as expected.