public function printSnippet() {
        $record=$this->getRecord($this->currentPageID());
        if(!empty($record) && $record!==false && $record->ID>0) {
            $version=false;
            if(!empty($this->urlParams['OtherID']) && is_numeric($this->urlParams['OtherID'])) {
                $version=$record->Version(intval($this->urlParams['OtherID']));
            }
            
            
            Requirements::css(CB_DIR.'/javascript/external/syntaxhighlighter/themes/shCore.css');
            Requirements::css(CB_DIR.'/javascript/external/syntaxhighlighter/themes/shCoreDefault.css');
            Requirements::css(CB_DIR.'/javascript/external/syntaxhighlighter/themes/shThemeDefault.css');
            
            Requirements::javascript(CB_DIR.'/javascript/external/syntaxhighlighter/brushes/shCore.js');
            Requirements::javascript(CB_DIR.'/javascript/external/syntaxhighlighter/brushes/'.$record->getBrushName().'.js');
            Requirements::javascript(CB_DIR.'/javascript/CodeBank_PrinterFriendly.js');
            
            return $this->renderWith('CodeBank_PrinterFriendly', array('Snippet'=>$record, 'SnippetVersion'=>$version, 'CodeBankDir'=>CB_DIR));
        }
        
        return $this->response->setStatusCode(404);
    }