Hi,

Sorry, misunderstood you.. I thought asciidoc has a xml-syntax, but you've just 
said you've got the highlight definition xml file for asciidoc.
To shorten the answer: there's actually no way to support commenting on any 
file. The highlighting support is something that can be done by the mime type 
specification, and this works even on a plain text editor. But to use more 
functionality (commenting would count in) this would need a separate handling 
of this file type.

There's actually no editor inside Qt Creator which could handle this.

Kind regards,
Christian

________________________________________
From: Wilhelm Meier [[email protected]]
Sent: Monday, September 08, 2014 1:55 PM
To: Stenger Christian; [email protected]
Subject: Re: [Qt-creator] Keyboard shortcut in textfile not working

Am 08.09.2014 um 13:22 schrieb Stenger Christian:
> Hi,
>
> you can just add the file suffix to the mime types of xml files.
>
> Go to Tools -> Options... -> Environment -> MIME Types, find 
> application/rss+xml and add the pattern for *.adoc to the patterns list. 
> Should look similar to
>
> *.docbook;*.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.kcfg;*.wsdl;*.adoc

Mmh, I have already text/x-asciidoc as a MIME-type (I suppose that is
from my syntax-highligting file) for the extension *.adoc.

So, I can't add it to another MIME-type.

But commenting isn't working ...

>
> afterwards. If this is done commenting should work.
>
> Kind regards,
> Christian
> ________________________________________
> From: Wilhelm Meier [[email protected]]
> Sent: Monday, September 08, 2014 12:58 PM
> To: Stenger Christian; [email protected]
> Subject: Re: [Qt-creator] Keyboard shortcut in textfile not working
>
> Am 08.09.2014 um 12:21 schrieb Stenger Christian:
>> Hi,
>>
>> commenting line(s) should be possible only if Qt Creator knows what kind of 
>> language is used for your document. This is normally determined by the file 
>> suffix or additional mime type settings. If Qt Creator cannot determine the 
>> language you will only have a plain text editor without any special features 
>> like commenting or similar.
>
> I have a syntax-highlighting definition xml-file for asciidoc-files
> (*.adoc). But I think, that isn't enough.
>
> So. what do I have to do to make qtcreator recognize the file type?
>
>>
>> Kind regards,
>> Christian
>>
>> ________________________________________
>> From: [email protected] 
>> [[email protected]] on behalf of 
>> Wilhelm Meier [[email protected]]
>> Sent: Monday, September 08, 2014 11:00 AM
>> To: [email protected]
>> Subject: [Qt-creator] Keyboard shortcut in textfile not working
>>
>> Hi all,
>>
>> if I edit a textfile (asciidoc) the shortcut for toggling the line
>> comment Ctrl+/ doesn't work.
>>
>> How can I enable this for textfiles?
>>
>> --
>> Wilhelm
>> _______________________________________________
>> Qt-creator mailing list
>> [email protected]
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>
>

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to