jEdit Community - Resources for users of the jEdit Text Editor
Formating XML tags - automatic indent of tags groups
Submitted by robotmonster on Sunday, 28 May, 2006 - 05:31
I'm looking to automaticly indent by tabs XML group tags. Also indent Javascript's "if", functions etc.
Is there such command/plugin/macro?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
precisely
by robotmonster on Sun, 28/05/2006 - 05:46
Make jEdit add Tabs in front of the ingroup tag lines and insert a line break for each XML attribute for example.
 
"I'm looking to automaticly i
by Oswald on Sun, 28/05/2006 - 20:59
"I'm looking to automaticly indent by tabs XML group tags."
Check XML Indenter plugin.

"Also indent Javascript's "if", functions etc."
Select what you want to indent and press C+i (or Edit > Indent > Indent lines).
 
No. here is what I exactly need it to do :
by robotmonster on Mon, 29/05/2006 - 13:47

LET'S SAY I HAVE THIS :

<rss version="2.0">
<channel><title>title</title> <link>link</link>
<description>description</description> <language>English</language>
<lastbuilddate>Mon, 28 Nov 2005 06:53:38 GMT</lastbuilddate> <item>
<title>title</title> <link>link</link> <description>description</description>
<author>author</author> <category>category</category> <guid
ispermalink=false>12345</guid> </item> </channel> </rss>

AND I WANT IT TO LOOK LIKE THIS :

<rss version="2.0">
        <channel><title>title</title>
        <link>link</link>
        <description>description</description>
        <language>English</language>
        <lastbuilddate>Mon, 28 Nov 2005 06:53:38 GMT</lastbuilddate>

         <item>
                  <title>title</title>
                  <link>link</link>
                  <description>description</description>
                  <author>author</author>
                  <category>category</category>
                  <guid ispermalink=false>12345</guid>
         </item>
         </channel>
</rss>

I tried the Line Indent function but it didn't change anything.
I also tried the Beautify plugin and didn't work either.

 
At least here XML Indenter wo
by iNetRunner on Tue, 30/05/2006 - 08:00
At least here XML Indenter works for your example, after you correct that xml and place that parameter value in quotes. (...<guid ispermalink="false">...)
 
But.
by robotmonster on Thu, 01/06/2006 - 15:58
Ok. Thanks very much for helping. But that doesn't fix .JS or .HTML hierarchy. I'm looking for the same Format function BBedit has in Markup>Utilities>Format. It then asks you for a couple of settings and makes your scripts look goood and clean. BBedit is Mac only. I want this function on my PC Sad
 
Same Issue
by simonsez on Tue, 01/05/2007 - 02:13
I'm having the same issue. Can't seem to indent html code that is already written. Any resolve?
 
There's the Beauty Plugin.
by elberry on Tue, 01/05/2007 - 14:30
You can try the Beauty Plugin.

Learn from the past. Live in the present. Plan for the future.
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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293