Is there a Quick Look plugin to view the text contents of any file with any extension
Is there a Quick Look plugin to see the contents of any text file with any extension instead of just showing the icon.


The short answer is “no.”

Can you develop quick look plugins?  Of course you can!  However, things fall short with the requirement of any text file with any extension.

Files types and their associations, like what to open it with, what to edit it with and even what icon to show are all handled by LaunchServices.  The problem with “any file/any extension” is there’s no way to associate that with a particular quick view plugin.  For example which plugin would be associated with the shell script I wrote called foobar and the binary data file barfoo both with no extension?  Not all “no extension” files are of the the same type; in your case, text.

You can get more information regarding LaunchServices from the Development Guide