473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Learning Python on jEdit

Ray
I want to jump in a learn Python. I have spent about a day looking at
editors and IDEs and (probably prematurely) selected jEdit to work in.
I have downloaded Python and jEdit. I have been going over jEdit for
a while and can't real see how to get it to know that I am using
Python.

So there is more there than I expected. Any suggestions on how to
configure (plugg-ins?) for jEdit and learn Python?

Ray
Jul 18 '05 #1
4 15696
Ray <rt******@ev1.net> pisze:
I want to jump in a learn Python. I have spent about a day looking at
editors and IDEs and (probably prematurely) selected jEdit to work in.
I have downloaded Python and jEdit. I have been going over jEdit for
a while and can't real see how to get it to know that I am using
Python.


jEdit detects file type by extension, so Python syntax highlighting
will not work until you save the file with py or pyw extension.

--
Jarek Zgoda
http://jpa.berlios.de/
Jul 18 '05 #2

"Jarek Zgoda" <jz****@gazeta.usun.pl> wrote in message
news:c1**********@nemesis.news.tpi.pl...
[snip]
jEdit detects file type by extension, so Python syntax highlighting
will not work until you save the file with py or pyw extension.


Actually you can set the edit mode manually as well:

http://www.jedit.org/users-guide/mod...mode-selection

"""
The edit mode can be specified manually as well. The current buffer's edit
mode can be set on a one-time basis in the Utilities>Buffer Options dialog
box;
"""

Plus you can set the default edit mode to python, so that when you create a
new file it's already in python-mode.
Ray:

You may want to use the plug-in manager[1] to get the console plug-in so you
can run your programs from within the IDE. You may also appreciate the
Jython plug-in. Peronally, I like having the BufferTabs plug-in as well. I
actually tend to use Komodo for Python, but I have jEdit installed for
programming in several other languages and I'm pretty happy with it. Enjoy.

Sean
[1] http://www.jedit.org/users-guide/using-plugins.html

Jul 18 '05 #3
rt******@ev1.net (Ray) wrote in message news:<d4*************************@posting.google.c om>...
I want to jump in a learn Python. I have spent about a day looking at
editors and IDEs and (probably prematurely) selected jEdit to work in.
I have downloaded Python and jEdit.
Even though I love jEdit, its Python-awareness isn't as good as that
of a Python-specific IDE. Since you're in the process of learning
Python, I recommend that you use as your interactive console an editor
that has Python object member pop-ups and parameter tips (e.g.,
Pythonwin, or OrbTech's PyShell (which comes with wxPython)). I use
PyShell as my interactive console and jEdit as my main editor.

I edit Python and C/C++ source code for many hours a day with jEdit,
and have been doing so since 1999, so obviously I regard jEdit as a
suitable editor for Python source. IMO, jEdit's most compelling
(though not unique) features are code folding, HyperSearch, multiple
views/split views, and markers. My workstation has multiple monitors,
and I can spread several semi-autonomous 'views' from a single
instance of jEdit across them to simultaneously view several pieces of
code at once. Markers (with appropriate Back/Set/Forward keyboard
shortcuts) allow me to hop around huge source files without touching
the mouse.
I have been going over jEdit for a while and can't real see how to get it
to know that I am using Python.
In the Utilities->Global Options->Editing dialog (of jEdit 4.1), you
can change Python-specific settings by selecting 'Python' from the
'Change settings for mode' drop-down. I have mine set to 'Tab width':
4, 'Indent width': 4, 'Soft (emulated with spaces) tabs': yes. Save
yourself some hassle and don't mix tabs and spaces in your Python
source code. jEdit can paper over the difference between soft and
hard tabs, so there are no extra keypresses required.

This dialog also allows you to specify which filename extensions are
to be considered Python source files, or which textual pattern on the
first line of a source file indicates same (e.g., '#/usr/bin/env
python').

If you use jEdit for virtually nothing other than editing Python
source, you can set Python mode as the default via the 'Default Edit
Mode' option in that same Utilities->Global Options->Editing dialog.
So there is more there than I expected. Any suggestions on how to
configure (plugg-ins?) for jEdit and learn Python?


jEdit's indentation-based code folding works very well with Python out
of the box.

Since Python has syntactically significant whitespace, jEdit's
Whitespace plugin is a real help. In particular, turn on
Utilities->Global Options->Plugins->Whitespace->Fold guides->Show fold
guides by default. I have Whitespace set to display a faint grey
vertical line along Python indentation planes.

jEdit also has a Jython plugin, which, among other capabilities,
allows you to write jEdit macros in Python. There's also a plugin
called Py Utils, but I haven't used it.
Jul 18 '05 #4
Ray
David,

Thanks for all the details, I have a few questions.

You mentioned that jEdit is not Python specific and that others may be
more appropriate for learning. Later, you addressed how to get jEdit
to recognize Python. Are you saying that even with the Python
plug-ins and options, the Python only IDEs would be better for
learning?

I looked at PyShell and Pythonwin. The documentation says that
Pythonwin was designed for MFC. I found no mention to MFC. What's up
with MFC and how relevent is it?

Ray

wo**********@rocketmail.com (David Rushby) wrote in message news:<78**************************@posting.google. com>...
rt******@ev1.net (Ray) wrote in message news:<d4*************************@posting.google.c om>...
I want to jump in a learn Python. I have spent about a day looking at
editors and IDEs and (probably prematurely) selected jEdit to work in.
I have downloaded Python and jEdit.


Even though I love jEdit, its Python-awareness isn't as good as that
of a Python-specific IDE. Since you're in the process of learning
Python, I recommend that you use as your interactive console an editor
that has Python object member pop-ups and parameter tips (e.g.,
Pythonwin, or OrbTech's PyShell (which comes with wxPython)). I use
PyShell as my interactive console and jEdit as my main editor.

I edit Python and C/C++ source code for many hours a day with jEdit,
and have been doing so since 1999, so obviously I regard jEdit as a
suitable editor for Python source. IMO, jEdit's most compelling
(though not unique) features are code folding, HyperSearch, multiple
views/split views, and markers. My workstation has multiple monitors,
and I can spread several semi-autonomous 'views' from a single
instance of jEdit across them to simultaneously view several pieces of
code at once. Markers (with appropriate Back/Set/Forward keyboard
shortcuts) allow me to hop around huge source files without touching
the mouse.
I have been going over jEdit for a while and can't real see how to get it
to know that I am using Python.


In the Utilities->Global Options->Editing dialog (of jEdit 4.1), you
can change Python-specific settings by selecting 'Python' from the
'Change settings for mode' drop-down. I have mine set to 'Tab width':
4, 'Indent width': 4, 'Soft (emulated with spaces) tabs': yes. Save
yourself some hassle and don't mix tabs and spaces in your Python
source code. jEdit can paper over the difference between soft and
hard tabs, so there are no extra keypresses required.

This dialog also allows you to specify which filename extensions are
to be considered Python source files, or which textual pattern on the
first line of a source file indicates same (e.g., '#/usr/bin/env
python').

If you use jEdit for virtually nothing other than editing Python
source, you can set Python mode as the default via the 'Default Edit
Mode' option in that same Utilities->Global Options->Editing dialog.
So there is more there than I expected. Any suggestions on how to
configure (plugg-ins?) for jEdit and learn Python?


jEdit's indentation-based code folding works very well with Python out
of the box.

Since Python has syntactically significant whitespace, jEdit's
Whitespace plugin is a real help. In particular, turn on
Utilities->Global Options->Plugins->Whitespace->Fold guides->Show fold
guides by default. I have Whitespace set to display a faint grey
vertical line along Python indentation planes.

jEdit also has a Jython plugin, which, among other capabilities,
allows you to write jEdit macros in Python. There's also a plugin
called Py Utils, but I haven't used it.

Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Kamilche | last post by:
I love Python, but I'm less than in love with IDLE. It's OK, but it really doesn't have enough capabilities. What I consider critical, are a popdown listing of all my functions, colored syntax...
1
by: Wezzy | last post by:
Hi all, i've just seen the pydebug plugin for jEdit and my question is : is there something similar for emacs ? i'm looking for a debugger frontend, a very simple program, just set breakpoint,...
1
by: Kenneth McDonald | last post by:
I'm setting myself up to use Python with jEdit (after trying jed, VIM, others...urggh.) One small problem I'm having is that while jEdit has a nice plugin called Console which can be set up to run...
9
by: Michael Foord | last post by:
I'm looking to learn C to move some 'speed sensitive' code from C to python. I'm partly doign this as an exercise to learn a static language to help broaden my programming skills - so please don't...
37
by: Carlos Ribeiro | last post by:
Oh well. A mailing list is not the most appropriate place for rants (a blog is better), but it's still better than keeping it for myself. I'm frustrated. My search for a good IDE to support my...
14
by: sushant.sirsikar | last post by:
hi, I want to know which is the best IDE for python.Please if possible mention the features of the IDE. Thank You. Sushant
38
by: looping | last post by:
For Python developers around. >From Python 2.5 doc: The list of base classes in a class definition can now be empty. As an example, this is now legal: class C(): pass nice but why this...
20
by: W. Watson | last post by:
I downloaded python-2.5.msi and installed it. I believe its editor is IDE. I understand there's a Win editor called pythonwin. I believe it's in the download pywin32-210.win32-py2.5.exe, but I'm...
11
by: Tom Gur | last post by:
Hi, which IDE would you recommend for a python ?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.