There does not appear to be any way for a grammar loaded from a .tmLanguage file to specify text for the Preview section of the Preferences->TextMate->Grammar page.
It is possible to type or paste text into that area, and the grammar is applied, but that text is lost when the Preferences dialog is closed and reopened.