Difference between revisions of "Editor"
From Organic Design wiki
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[http://geany.uvena.de/Main/HomePage Geany] is an excellent free open source text editor for *ux, OSX and Windows | [http://geany.uvena.de/Main/HomePage Geany] is an excellent free open source text editor for *ux, OSX and Windows | ||
== Context action == | == Context action == | ||
Geany allows the setting of a context action for the right clicking on a selection. An obvious use for this is to link to the php manual, but unfortunately the php manual uses - instead of underscore, so this script is used to launch it instead. Save the script in /bin or something and then set it in the context action in prefs (use %s to represent the selected text in the command). Having a script to launch the browser is a good idea anyway because we could later expand it to launch other URL's based on the selection content. | Geany allows the setting of a context action for the right clicking on a selection. An obvious use for this is to link to the php manual, but unfortunately the php manual uses - instead of underscore, so this script is used to launch it instead. Save the script in /bin or something and then set it in the context action in prefs (use %s to represent the selected text in the command). Having a script to launch the browser is a good idea anyway because we could later expand it to launch other URL's based on the selection content. | ||
− | {{code| | + | {{code|<php> |
#!/usr/bin/perl | #!/usr/bin/perl | ||
$_ = $ARGV[0]; | $_ = $ARGV[0]; | ||
s/_/-/g; | s/_/-/g; | ||
qx( firefox http://php.net/manual/en/function.$_.php ); | qx( firefox http://php.net/manual/en/function.$_.php ); | ||
− | + | </php>}} | |
==External links== | ==External links== |
Revision as of 09:28, 24 November 2010
Geany is an excellent free open source text editor for *ux, OSX and Windows
Context action
Geany allows the setting of a context action for the right clicking on a selection. An obvious use for this is to link to the php manual, but unfortunately the php manual uses - instead of underscore, so this script is used to launch it instead. Save the script in /bin or something and then set it in the context action in prefs (use %s to represent the selected text in the command). Having a script to launch the browser is a good idea anyway because we could later expand it to launch other URL's based on the selection content.