Is someone aware of a method to highlight CUDA code while using Qt Creator? I could do so in vim and kate, but not in Qt Creator and I have to use it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you could highlight CUDA code in Kate then you can do it in Qt Creator as well because in Qt Creator
generic highlighting is based on highlight definition files that are provided by the Kate Editor.Although Qt Creator helps you download highlight definition files (see the documentation), unfortunately I can not see CUDA in the Download Definitions dialog so you have to copy the CUDA highlight definition file you use with Kate manually to the location where Qt Creator expects them (see
LocationandFallback locationin the documentation mentioned).