Re: May be search impaired

Mike Maxwell <[email protected]>
Newsgroups gmane.editors.jedit.user
Message-ID <[email protected]>
On 2/8/2019 8:44 PM, doug wrote:> Hi,
 > Generally like jedit, but notepad++ does a better job of highlighting
 > values in xml files.
 >
 > I think there must be an easy way to make values inside <name>value
 > </name>.

What do you mean by "values"?  Text values?  If so, what should happen 
with mixed text, like
  <para>
     This is a reference <ref>Somewhere</ref>.
  <para>
Should the <ref> tag be treated as part of the <para> tab's value, or 
should only its text content be treated as a "value"?

I presume you don't mean the value inside <foo>...</foo> in the 
following example:
    <foo>
      <bar someattr="somevalue"/>
    <foo>

What should happen with whitespace inside tags?  Should whitespace 
behave differently in text values from the way it behaves elsewhere?

At any rate, the way to do what you want is to create an xml.xml file 
that encodes the things you want tagged in certain ways, as described in 
jEdit's help document, in the topic "Writing jEdit modes".  You'll 
probably want to start with the xml.xml file as delivered, and modify it 
to your tastes.  Depending on how things are set up on your computer, 
you may want to copy the as-delivered file over to your personal jEdit 
Modes directory.  The as-delivered file can be found using the 
"Utilities" > "jEdit Home Directory" menu item, and choosing the "Modes" 
directory menu item under that.  Your personal jEdit Modes directory can 
similarly be found using the "Utilities" > "jEdit Settings Directory" 
command.  Once you create your personal xml.xml, you may want to change 
the way xml files you're editing are handled in Utilities > Global 
Options, choose "Editing" on the left, then choose first the "Edit 
Modes" tab on the right to create a new mode.  Then change the "Mode 
Settings" tab (right next to the "Edit Modes" tab) to assign xml files 
to your new mode.
-- 
    Mike Maxwell
    "My definition of an interesting universe is
    one that has the capacity to study itself."
          --Stephen Eastmond


-- 
-----------------------------------------------
jEdit Users' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.