This forum has been archived. All content is frozen. Please use KDE Discuss instead.

code folding in kate

Tags: None
(comma "," separated)
jureko
Registered Member
Posts
4
Karma
0
OS

code folding in kate

Wed Nov 30, 2011 12:12 pm
Hello,
i try to make my own syntax file for kate.
Now i have problem with BeginRegion and EndRegion:

Code: Select all
   <StringDetect attribute="Region Marker" context="region_marker" String="#" beginRegion="Region1"/>
   <StringDetect attribute="Region Marker" context="region_marker" String="##" endRegion="Region1"/>

- this is not working
is it possible to have '#' as begin and '##' as end folding block?
Ok, i have answer from #kate: simply reverse lines with begin and endblock:
Code: Select all
 <Detect2Chars attribute="Region Marker" context="region_marker" char="#" char1="#" endRegion="Region1"/>
 <DetectChar attribute="Region Marker" context="region_marker" char="#" beginRegion="Region1"/>



--
jureko
ps. sorry for my english
duns
Registered Member
Posts
78
Karma
0
OS

Re: code folding in kate

Wed Sep 09, 2020 2:03 am
I'm interesting in this question: I'd like to fold css code according to my needs, f.e. folding after a line beginning with some symbol such as >>.
How should I do?
duns
Registered Member
Posts
78
Karma
0
OS

Re: code folding in kate

Mon Sep 14, 2020 6:32 am
I mean I'd like to keep the whole highliting css syntax of kate, but just adding new markers (such as ##) to fold several elements (tag, or IDs, oc classes). Something like headers in a odt file, so that I be able to go quickly thorough the css file.

EDIT

Great! Today I noticed that if I write BEGIN in a row that row is the beginning of a collapsable section, until a row with END.
F.e. /* --- BEGIN common tags --- */ as beginnning and /* --- END common tags --- */ as end.
And I can have nested collpsable sections, even in an html file (<!-- BEGIN head -- --> <!-- END head -- -->, f. e.)
kevinmacduff
Registered Member
Posts
6
Karma
0

Re: code folding in kate

Thu May 05, 2022 6:42 pm
The lack of IT laborers powers the organizations that need the IT specialists referenced well beyond choose offshoring the expected aptitude and administrations. In any case, an ever increasing number of organizations concur that it comes helpful to find IT experts seaward, and 9 of 19 organizations adhere to this cooperative methodology for a really long time, thusly framing long haul working relations with a similar specialist co-op. With regards to nature of work, advantageous correspondence, and moderateness of assets, devoted Ukrainian experts are the top pick for organizations from the US, Canada, Australia, the UK, Germany, and different nations. In this way, on the off chance that you wonder where and how to find tech assets, direct your concentration toward seaward programming administrations in Ukraine>> visit page


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]