yes i had the same problem, but since i had some other issues i abandoned
this
see here
https://groups.google.com/forum/#!searchin/web2py/pygments|sort:date/web2py/9EyKOZ-bHHM/1myqDA9qMv0J
since this is still not working I changed to
http://alexgorbatchev.com/SyntaxHighlighter/
here is an example:
controller
def index():
response.files.append( URL(request.application,
'static/plugin_restapidoc/syntaxhighlighter', 'scripts/shCore.js') )
response.files.append( URL(request.application,
'static/plugin_restapidoc/syntaxhighlighter', 'scripts/shBrushPython.js') )
response.files.append( URL(request.application,
'static/plugin_restapidoc/syntaxhighlighter', 'scripts/.js') )
response.files.append( URL(request.application,
'static/plugin_restapidoc/syntaxhighlighter', 'styles/shCore.css') )
response.files.append( URL(request.application,
'static/plugin_restapidoc/syntaxhighlighter', 'styles/shThemeDefault.css') )
#this must be last to be able to overwrite syntaxhighlighter styles
response.files.append(URL(request.application,'static/plugin_restapidoc','base.css'))
view index.html
function methodDetails(action){
$.ajax({
url: action,
success: function( data ) {
$('#method_details').hide().html(data).fadeIn();
SyntaxHighlighter.highlight();// must call hightlight if you use ajax
otherwise use all()
}
});
}