jupyter-robotics / jupyterlab-urdf

A URDF viewer and editor extension for JupyterLab.
https://jupyterlab-urdf.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
97 stars 9 forks source link

URDF Syntax Hightlighting #21

Closed IsabelParedes closed 1 year ago

IsabelParedes commented 2 years ago

Currently, whenever a .urdf file is opened with the Editor, it is loaded as Plain Text instead of the desired XML. On the other hand, a .xml file opened with the Editor will automatically highlight the XML syntax.

image

For URDF files, the user has to manually switch to XML to enable syntax highlighting. Ideally, this should be handled automatically by the extension.