Hex-to-Numeric Entities Converter

At work I get files sometimes with hexadecimal entities but the problem is that we use numeric entities. I decided to write a simple script that will search the file for hex entities and convert them to numeric one. This is intended to be used with Komodo Edit or via the command line.

This is the command that needs to be added to Komodo Edit.%(php)" -f "C:\Users\JayBachatero\Desktop\hex-to-numeric.php" -- --filename="%F"

To add the command in KE, all you need to do is:

Go to Toolbox > Add > New Command

In the first text area the following text appear, “New Command”, replace that with the name that you want to give this command. ie “Hex to Numeric”

In the command field, you enter the command shown above. Make sure that the path to the file is correct.

Select “Command Output Tab” under the “Run in” section.

If you want to see the results of the command, uncheck “Do not open output pane”.