Tutorial on using Kate to edit HTML?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've been referred to https://docs.kde.org/stable5/en/kate/katepart/
and particularly https://docs.kde.org/stable5/en/kate/katepart/highlight.html .

They, and https://docs.kde.org/stable5/en/kate/kate/ , go into very fine gained detail about a plethora of tasks Kate can trivially handle.
BUT, where is the one I need?

Example 1
While browsing one of the above references, I saw a reference to using parentheses. [can't find it now] When at an opening parenthesis it described how to move the cursor to the matching closing parenthesis. Interesting but not of immediate use.

However when editing an existing HTML file with <div ...> </div> pairs, there is a blue triangular dingus to the left of the line containing the opening <div ...>. Clicking on the dingus will hi-lite text from there to the presumed matching </div>. What is that called? Where is it described? Can I move the cursor there?

Example 2
The HTML files(chapters of KJV Bible) I work with can have some very long lines. One line can run from ~1k characters (Job 25) to ~32k characters (Psalm 119).

When manually editing those files, it would be convenient for the editor begin each verse on a new line.

In Pluma a trivial search and replace operation. Replace all occurrences of [ <span class="verse" ] with [ \n<span class="verse" ].

How to discover how to do it in Kate?

Note: While defining what needs to done, Kate's manual mode is excellent. As there are ~1000 Bible chapters, I'll want to do this in a command line script eventually.

TIA




[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux