Document Class file filter (*.txt Vs EDIT??)
Posted: Sat Dec 06, 2003 6:20 pm
Is it possible to set the file filter in a Document class to allow regexp like filename matching?
Specifically I'd like to have files which end with "todo.txt" to use a custom syntax definiton, also there are cases where I have a very rigid file pattern with no extension ( ie EDIT00, EDIT01, EDIT02 ... ) and would like to set a syntax def for them too!
I've tried "*todo.txt" and even being careful to ensure my many todo lists have the word todo in the same case I have been unsuccessful - I also tried using a double extension (*.todo.txt)..
I'm fairly sure the conflict is between my own docment class and the default text class, surely it is possible to have a file name checked for *todo.txt before being checked for *.txt?
Rob
Specifically I'd like to have files which end with "todo.txt" to use a custom syntax definiton, also there are cases where I have a very rigid file pattern with no extension ( ie EDIT00, EDIT01, EDIT02 ... ) and would like to set a syntax def for them too!
I've tried "*todo.txt" and even being careful to ensure my many todo lists have the word todo in the same case I have been unsuccessful - I also tried using a double extension (*.todo.txt)..
I'm fairly sure the conflict is between my own docment class and the default text class, surely it is possible to have a file name checked for *todo.txt before being checked for *.txt?
Rob