Menu

Python Server Pages and/or Spyce

2008-02-06
2013-03-15
  • Tom Rectenwald

    Tom Rectenwald - 2008-02-06

    Hello.  I use PyDEV for my Python development in Eclipse.  To date, the development has not been web based; that has been done in PHP.  I'd like to start using Python for some web work and was thinking of using the mod_python PSP handler, or perhaps Spyce.

    Are there any plans to implement PSP like syntax (i.e. Python embedded in HTML) to PyDEV?  Or, is there another plugin (or combination) avaialable that would emulate this sort of environment?  All I'm really looking for here is syntax highlighting.  I've discovered that jEdit handles PSP syntax highlighting rather well.  However, I'm hooked on Eclipse, as I use it for a variety of different languages, SQL work via SQLExplorer, Remote Explorer for deployments, and the Serena module for PVCS.  I don't think I'll get that functionality with jEdit.

    I wouldn't mind taking a stab at creating a plugin to do PSP syntax highlighting for Eclipse, but it seems redundant with PyDEV out there.

    Any thoughts/suggestions out there?

    Best Regards,
    Tom

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2008-02-07

      Hi Tom,

      There are no plans to implement PSP like syntax (pydev is currently only oriented towards support for the python language and has no plans to support derivations of that).

      Now, syntax highlighting should be fairly easy to add to eclipse (there's a project that already gives HTML syntax which I think is nice: http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor which you can probably use as a base for the syntax highlighting for the html part -- and they include jsp already, so, you can take it as a base for how would the python integration act).

      Another option would be choosing something as turbogears or django which have actual python code and not python embedded in html (although if you have python embedded in html, I'd keep that python part to a minimum and work mostly with external modules -- using pydev -- anyways and use some other 'raw' html editor).

      Cheers,

      Fabio

       
    • Tom Rectenwald

      Tom Rectenwald - 2008-02-07

      Thanks for the informative answer.  I can understand why the Pydev focus wouldn't include PSP.  I'll check out Amateras; that sounds like something that I'd have the ability to do.  As for TurboGears and Django, I actually installed Django today and am poking around with it.  I may also just do plain old CGI for some old stuff, was able to get that up and running with the mod_python cgihandler.  The more I develop, the easier (and cleaner) it becomes to separate code from markup; so that's probably the correct way to go anyway.

      Best Regards,
      Tom