Preview and select unknown text files in Mac OS X

Quick patch to allow previewing plain text files with unknown extension by simply pressing Spacebar in Mac OS X Finder.

What to do

  1. Download QLStephen plugin: https://github.com/whomwah/qlstephen
  2. Copy file QLStephen.qlgenerator to directory /Library/QuickLook/
  3. Optionally, to allow selection of text right from the preview, copy and paste this into terminal:
    defaults write com.apple.finder QLEnableTextSelection -bool true
  4. Restart Finder (manually or by typing killall Finder into Terminal)

Comments