1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <?python from sercom.model import Grupo, AlumnoInscripto ?>
4 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
5 py:extends="'../../../templates/master.kid'">
7 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
8 <LINK MEDIA="all" HREF="/tg_widgets/turbogears.widgets/sh/SyntaxHighlighter.css" TYPE="text/css" REL="stylesheet" />
17 <div py:for="info in zip.infolist()">
18 <h3>${info.filename}</h3>
19 <?python n, ext = os.path.splitext(info.filename) ?>
20 <textarea name="code" class="${ext[1:]}:collapse">${zip.read(info.filename)}</textarea>
25 <a href="javascript:window.history.go(-1)">Volver</a>
27 <!-- Lo hago a mano para poder agregar un nuevo lenguaje. No se como hacerlo sino :S -->
28 <SCRIPT SRC="/tg_widgets/turbogears.widgets/sh/shCore.js" TYPE="text/javascript"></SCRIPT>
29 <SCRIPT SRC="/tg_widgets/turbogears.widgets/sh/shBrushPython.js" TYPE="text/javascript"></SCRIPT>
30 <SCRIPT SRC="/tg_widgets/turbogears.widgets/sh/shBrushXml.js" TYPE="text/javascript"></SCRIPT>
31 <script type="text/javascript">
32 // <!-- Agrego soporte para DIFF que no tiene el widget -->
33 dp.sh.Brushes.Diff = function() {
37 { regex: new RegExp('^-.*', 'gm'), css: 'rojo' },
38 { regex: new RegExp('^@@.*', 'gm'), css: 'chunk' },
39 { regex: new RegExp('^\\+.*', 'gm'), css: 'verde' }
42 this.CssClass = 'dp-diff';
44 dp.sh.Brushes.Diff.prototype = new dp.sh.Highlighter();
45 dp.sh.Brushes.Diff.Aliases = ['diff'];
47 <SCRIPT TYPE="text/javascript">dp.SyntaxHighlighter.HighlightAll('code');</SCRIPT>
51 <!-- vim: set et sw=4 sts=4 : -->