Commits

Ben Bangert committed ed616cc

Add doc styling

Comments (0)

Files changed (1)

webhelpers/pylonslib.py

     THIS IMPLEMENTATION DEPENDS ON PYLONS.  However, it can easily be adapted
     for another web framework.
 
-    Normally you instantiate a Flash object in myapp/lib/helpers.py:
+    Normally you instantiate a Flash object in myapp/lib/helpers.py::
 
         from webhelpers.tools import Flash as _Flash
         flash = _Flash()
         h.flash("Hope you didn't need it.")
 
     Now make a place in your site template for the messages.  In Mako you
-    might do::
-
+    might do:
+    
+    .. code-block:: mako
+    
         <% messages = h.flash.pop_messages() %>
         % if messages:
         <ul id="flash-messages">
         </ul>
         % endif
 
-    You can style this to look however you want::
+    You can style this to look however you want:
+
+    .. code-block:: css
 
         ul#flash-messages {
             color: red;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.