>> Some modules can be installed under applications/yourapp/modules/ but not all. ... This works only if the module being imported itself does not rely on sys.path. Pygments does. It assumes there is only one instance of pygments in a location listed in sys.path.
>> Anyway. web2py has syntax highliting: I have noted these points. Thank you for confirming these and increasing my understanding of the usage of the framework.