Yes, it’s certainly possible and source code becomes so much easier to read. Try it out by downloading my .lessfilter: save it as ~/.lessfilter in your \$HOME.

Then try it out on a C source file: less -R myfile.c :-)