I've just tried your code in Mousepad and I couldn't make heads or tail of it. But Mousepad has a lot of options for marking code/script.