好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

firebug lite for chrome

firebug lite for chrome

http://getfirebug.com/releases/lite/chrome/

代码着色

http://code.google.com/p/google-code-prettify/  not support textarea

http://codepress.sourceforge.net/index.php  this is support textarea

http://www.cdolivet.com/editarea/editarea/exemples/exemple_full.html  anothoer support textarea edit source ,it's gread to build a web ide solution

http://codemirror.net/   这个看着不错,这个看着比较适,简洁

一个汇总

http://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors

http://www.mdk-photo.com/editor/  一个切换编辑大小的特性不错

一个web ide努力的方向

An online IDE for the Orc programming language

bespin的用户体验还是不错的,不过还不如其它的实用,做web ide可以参考

这个网站相当之牛bi http://kodingen.com/

http://gskinner.com/RegExr/  一个在线正则

http://regexlib.com/

http://www.pythonregex.com/   python的在线正则值得学习

 

Pyreb homepage



About the software Screenshots Requirements Links Current version Download and Project Page Author Status

About the software  
Pyreb  is a  wxPython  GUI to the  re python module ; it will speed up the development of  Python  regular expression (similar to PCRE). 
The GUI is simple and features 3 parts: A text box where the text to be analyzed is displayed A text box where the regular expression to be applied is displayed A tree control where the results are displayed

cool

 

A Collection of Regular Expressions Cheat Sheets & Quick Reference Guides

http://www.allwebdesignresources.com/webdesignblogs/graphics/a-collection-of-regular-expressions-cheat-sheets-quick-reference-guides/

 

PYTHON REGULAR EXPRESSION CHEAT SHEET

Published in:  Python  

Expand  |  Embed  |  Plain Text

  

import re

 

def regexp ( ) :

s = '<html><head><title>Title</title>'

 

# with pre compiled pattern

pattern = re . compile ( 'title' )

match = pattern. search ( s )

 

#check for existence

print match

# >> <_sre.SRE_Match object at 0x011E0E58>

 

#loop through all matches

match = pattern. findall ( s )

print match

# >> ['title', 'title']

 

#grouping matches

s = '<html><head><title>Title</title>'

pattern = re . compile ( '(head).*(title)' )

match = pattern. search ( s )

print match. group ( 0 )

# >>head><title>Title</title

print match. group ( 1 )

# >>head

 

#replace

pattern = re . compile ( 'title' )

print pattern. sub ( "ersetzt" ,s )

# >> <html><head><ersetzt>Title</ersetzt>

 

#split

pattern = re . compile ( 'title' )

print pattern. split ( s )

# >> ['<html><head><', '>Title</', '>']

 

#replace alle lines in file by "eineZeile"

f = open ( 'test.txt' , 'r' )

l= [ 'eineZeile' for l in f. readlines ( ) ]

f. close ( )

print l

f= open ( "test.txt" , "w" )

f. writelines ( l )

f. close ( )

 

regexp ( )

Report this snippet  

 

 

Retest /  Re-Try   What Is It  License  Download  Usage  History

Retest (And Re-Try ), Test Python Regular Expressions In A Webbrowser

What Is It

A simple Server which enables tests of Python regular expressions (  re  module) in a webbrowser. Uses SimpleHTTPServer and  AJAX  .

RE-TRY ONLINE APPLICATION

retest is now also available as  re-try  online application on  GAE .

RETEST LOCAL BROWSER APPLICATION

retest is available to be run locally as a browser application.

retest screenshot:

You only need:  Python  , a modern webbrowser like Firefox, IE (from 5.5), Safari or Opera (from 8) which handles XMLHttpRequest  .

License

 
This work is licensed under a  Creative Commons License  .

Download retest-0.6.1  - 061224

Tested with Python 2.5, Firefox 1.06/2.0.0.1, Internet Explorer 6/7 and Opera 8.02/8.50 on Windows XP only. Seems to work best with Firefox and Opera, any  feedback  (success or failure ;) is welcome.

Paul Bissex  reported  retest working on OS X 10.4.3 (Python 2.4.1) in Safari, Camino, Opera, and Firefox. Bryon Gill reports retest working fine on Fedora Core 4, Python 2.4.1, Mozilla 1.7.10. James Thiele reports retest v0.5.1 works on OS X 10.3.9 Python 2.3. Erik Knowles reports retest working on Mandriva 10.1.

Usage

Start the server with  >python reserver.py  and open  http://localhost:8087/  in your webbrowser (if the browser is not started automatically. You might want to adjust the  PORT  used in reserver.py.

The usage of the application itself should be self explanatory, take a look in the  Python documentation for the  re  module  .

Full keyboard usage is enabled. You may have to adjust the shortcuts to your browser or OS environment (e.g. on Windows ALT-T  [in Firefox  SHIFT-ALT-T  ] puts the focus in the "  T  ext" field.). See the titles on the specific items for the keyboard shortcuts which are normally the underlined characters or, in the case of the size adjustment buttons, the characters 1-6  .

Sometimes when you need to work on regular expression, you may need to look for a sandbox to do your testing. Here are two that I found quite helpful. Enjoy~~~

http://regex.powertoy.org/

http://www.rexv.org/

 

查看更多关于firebug lite for chrome的详细内容...

  阅读:44次