Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add highlighting file for *.launch, *.xacro, and *.urdf #416

Open
wants to merge 1 commit into
base: 4.9
Choose a base branch
from

Conversation

mpowelson
Copy link

Should fix syntax highlighting for launch, xacro, and urdf files. Currently you have to modify the settings to add them to the default xml highlighting file or add <?xml version="1.0"?> to your files.

@christian-rauch
Copy link
Member

Is the syntax highlighting different from other XML documents? Would it be possible to register the ROS MIME types with the other syntax or include the base XML syntax here?

A quick googling gave me https://www.qtcentre.org/threads/38353-Cannot-add-new-mimetype-for-a-custom-Qt-Creator-Plugin where it looks like the mimetypes.xml registers a new file format that subclasses application/xml. Could we do something like this so *.launch, *.xacro and *.urdf files are recognised as XML files and will always use the same XML syntax highlighting?

@Levi-Armstrong
Copy link
Member

Is the syntax highlighting different from other XML documents? Would it be possible to register the ROS MIME types with the other syntax or include the base XML syntax here?

A quick googling gave me https://www.qtcentre.org/threads/38353-Cannot-add-new-mimetype-for-a-custom-Qt-Creator-Plugin where it looks like the mimetypes.xml registers a new file format that subclasses application/xml. Could we do something like this so *.launch, *.xacro and *.urdf files are recognised as XML files and will always use the same XML syntax highlighting?

Yea, at one point I had this working early on then when I updated to another version it was broken, and never got around to figuring it out. Though it should be possible.

Here is the file that is being added but it does not appear to work anymore.

https://github.com/ros-industrial/ros_qtc_plugin/blob/devel/src/project_manager/ROSProjectManager.mimetypes.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants