[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-users
Subject:    Re: [ jEdit-users ] Shell script for bash
From:       Damien Radtke <damienradtke () gmail ! com>
Date:       2010-09-01 16:36:02
Message-ID: AANLkTikoFCv0s3Dey2+YWmqsBvRq3oZ=C2yYxbKr6PzN () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


The shellscript edit mode should work for bash scripting, so that will give
you highlighting. As far as I'm aware, there is currently no way to access
man pages directly from jedit, but it may be possible to create a macro that
will open a new terminal and run the man command. Something like

manPage = Macros.input(view, "View man page for:");
if (manPage != null) {
    Runtime.getRuntime().exec("gnome-terminal -x \"man "+manPage+"\"");
}

might work. I'm not currently at a linux computer, so I can't test this, but
I'm fairly certain it's possible.

[Attachment #5 (text/html)]

<div>The shellscript edit mode should work for bash scripting, so that will give you \
highlighting. As far as I&#39;m aware, there is currently no way to access man pages \
directly from jedit, but it may be possible to create a macro that will open a new \
terminal and run the man command. Something like<br> </div><div><br></div><div><font \
face="courier new,monospace">manPage = Macros.input(view, &quot;View man page \
for:&quot;);</font></div><div><font face="courier new,monospace">if (manPage != null) \
{</font></div><div><font face="courier new,monospace">    \
Runtime.getRuntime().exec(&quot;gnome-terminal -x \&quot;man \
&quot;+manPage+&quot;\&quot;&quot;);</font></div> <div><font face="courier \
new,monospace">}<br></font></div><div><br></div><div>might work. I&#39;m not \
currently at a linux computer, so I can&#39;t test this, but I&#39;m fairly certain \
it&#39;s possible.</div>



------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd

-- 
-----------------------------------------------
jEdit Users' List
jEdit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic