Reply to topic

How to contribute to syntax-highlighting?

tarbos
Registered Member
Posts
2
Karma
0
OS
Hi!

I made several improvements to the textile syntax highlighting and now have a few questions, mostly on how to share it.

1. To whom do I mail the patch/new version or how do I get git access?

2. The header lists a few values:
version="3"
kateversion="3.0"
author="Alexander Kabakov (kabakov.as@gmail.com)"

Is it correct to set them to these values?
version="4" // next iteration of file
kateversion="18.04.2" // tested Kate version
author="Alexander Kabakov (kabakov.as@gmail.com), Arkadiusz Guzinski (kermit@ag.de1.cc)" // just adding myself

3. Textile is designed to create HTML, which can also be embeded within it. So it would make sense to hightlight HTML-Elements. I tried to do that with things like
Code: Select all
<IncludeRules context="Element##XML"/>
, but that always messes up everything else - probably because it doesn't #pop back from that context. Is there a way to get that right with <IncludeRules/> or do I need to write these rules myself?

4. Since I'm using textile with jekyll, textile files usually contain a yaml "Front Matter" header, which I have implemented via
Code: Select all
<context name="front_matter" attribute="yaml">
    <StringDetect attribute="yaml" String="---" context="#pop" firstNonSpace="true" endRegion="front_matter"/>
    <IncludeRules context="normal##YAML"/>
</context>


This, however is not standard textile and while I don't expect it to cause any problems for pure textile files the question remains: does it belong in textile's syntax highlighting, or should i make a derived syntax highlighting file "textile_with_yaml.xml" for this case? If so, what's the best way to get it loaded automaticly?


##########
Here is a quick summary of my changes:


fixes:
links: multiple links per line, link alias
image: dont hightlight text if sentence ends with '!' ; dirty support for !imagestuff!:url syntax
put period behind sectionheaders (is required - may not have been when original rules were written)

added:
footnotes
comments block (###.)
notextile. block
some inline formating
basic table support
yaml front matter
airdrik
Registered Member
Posts
1350
Karma
2
OS
Have you tried contacting Alexander about all of this? He being the author would probably be the best one to answer most of these.


airdrik, proud to be a member of KDE forums since 2008-Dec.

 
Reply to topic

Bookmarks



Who is online

Registered users: albenson, alex_091, Baidu [Spider], Bing [Bot], Exabot [Bot], gfielding, Google [Bot], kappclark, oskark, philippv, smankowski, trickyricky26, Yahoo [Bot]