jEdit Community - Resources for users of the jEdit Text Editor
Avoid automatic ident, faults in php edit mode
Submitted by Hans_Bauer on Thursday, 15 March, 2007 - 09:14
Hello all and thank you for the great program.

I'm using a different style of programming and so the automatic identing of JEdit (e.g. on closing braces) is extremely counterproductive for me. Is there any possiblity to switch off all identing? Due to problems of inserting a code example within this topic, you may have a look at 'http://www.h-bauer.de/temp/identing-php.txt' to see my style of programming.

Programming some php routines i found that the php-edit-mode seems to be faulty. I'm very sorry, but i could not bring all code to be visible within this thread. So again i only can ask you to have a look at 'http://www.h-bauer.de/temp/identing-php.txt' to see the amazing colors when using the php-edit-mode.

Many thanks in advance for your assistance.
Yours
Hans Bauer
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
mode definition file
by Robert Schwenn on Thu, 22/03/2007 - 21:47
1. There is no switch for enabling or disabling indenting. You have to edit the mode file (php.xml). Uncomment all lines in the properties section whitch names contain "indent", "aline", LineUp", "electricKeys".

2. There are highlighting issues with escaped double quotes (\"). May be it will be better in jEdit 4.3pre10.
 
Thousand thanks.
by Hans_Bauer on Fri, 23/03/2007 - 06:24
Hello Robert,

Your reply was very useful for me. Due to the faults in php-mode in the meantime i prefer to work php-files in cpp-mode, although the variables and some other things are not colored correctly.

So i copied the cplusplus.xml in the modes subdirectory of the jEdit install directory to cplusphp.xml in the modes subdirectory of the jEdit settings directory (see help -> jEdit 4.3 Users Guide -> Writing Edit Modes -> Installing Edit Modes), commentated all lines for identing and modified the catalog file. Now per default all php-files are edited using my modified cplusphp.xml without any automatic identing.

I hope this workaround will get unnecessary with version 4.3pre10. This really would be great.

Again thousand thanks for your assistance.
Hans Bauer
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82347
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18494
BBEdit scheme   1.0   18115
ColdFusion scheme   1.0   18023
R Edit Mode - extensive version   0.1   17472
Advanced HTML edit mode   1.0   16205
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14292