Registered Member
|
When a hyphenated word appears, like "some-words" double clicking "words" only selects "words". I'd like to make it select "some-words". How can I do that?
|
Global Moderator
|
I think the highlighting for each language has a list of characters which are considered word-characters. If you modify that list, the behaviour should change. Try looking in /usr/share/katepart/syntax. I'm not sure that controls this behaviour though, you'll have to try it out
Greetings!
I'm working on the KDevelop IDE.
|
Registered Member
|
I found the xml files in /usr/share/kde4/apps/katepart/syntax/. But I'm not sure how to modify them to change the behavior. Nothing is jumping out at me and I'm not sure exatly what these files define. In my case it wold be JavaScript, PHP, CSS, and HTML that I would like to change, especially HTML/CSS since all the class names are hyphenated and it's annoying to try and select them manually.
This is what's in the HTML.xml file:
|
Global Moderator
|
Try adding
in the "general" section, looking at the code this might work. Greetings!
I'm working on the KDevelop IDE.
|
Registered Member
|
Thanks! The file I needed was html-php.xml and it's working now.
|
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]