grossman / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
0 stars 2 forks source link

msc highlighting for gtksourceview based applications (e.g. gedit/Anjuta) #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have written a sample language specification for the msc grammar for 
gtksourceview based applications. On a Debian based system, you can enable it 
by installing it as:

  /usr/share/gtksourceview-2.0/language-specs/msc.lang

I suspect that the location is the same for other systems. I have also attached 
two screenshots of how gedit represents msc-files with this language 
specification.

Original issue reported on code.google.com by NThykier@gmail.com on 17 Sep 2010 at 3:46

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by NThykier@gmail.com on 17 Sep 2010 at 3:47

GoogleCodeExporter commented 8 years ago
That's way cool - very neat!

A couple of things,

- Should this be in the 'Markup' group or 'Others'?  Graphviz is under 
'Others', so maybe we should follow that?

- In terms of installing with mscgen, how do you thing this should work?  I'd 
be more comfortable putting this in the mscgen docdir section and allow users 
to copy it into place depending on their distro.  We could of course contact 
the gtksourceview project and see if they would package the grammar too?   

Original comment by Michael....@gmail.com on 19 Sep 2010 at 11:10

GoogleCodeExporter commented 8 years ago
I think you are right about putting it in "Others"; the language does not 
appear to follow the definition of a "markup" (according to the wikipedia 
definition at least).

As for installing it: what about installing it as an example? If the 
gtksourceview project accepts it, we can just remove the example file and a 
note that it was included in version X of gtksourceview.

I will have a look at getting this included in gtksourceview.

Original comment by NThykier@gmail.com on 19 Sep 2010 at 11:20

GoogleCodeExporter commented 8 years ago
I have created a bug report for it on gtksourceview's bug tracker[1]. I'll keep 
you posted.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=630060

Original comment by NThykier@gmail.com on 19 Sep 2010 at 1:12

GoogleCodeExporter commented 8 years ago
New version of the msc.lang file.

Original comment by NThykier@gmail.com on 19 Sep 2010 at 1:13

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r141.

Original comment by Michael....@gmail.com on 19 Sep 2010 at 1:38

GoogleCodeExporter commented 8 years ago
Cool - I've added this and modified the group to be "Others".
It gets installed under the mscgen docdir and the README note describes how it 
can be copied.

Let me know how you get on with putting it into the GtkSourceView tree.

Many thanks for this.

Original comment by Michael....@gmail.com on 19 Sep 2010 at 1:46

GoogleCodeExporter commented 8 years ago
Thanks, I will keep you posted.

By the way, I had a look at the gedit documentation - apparently you can also 
install the lang file into ~/.local/share/gtksourceview-2.0/language-specs, 
which is probably easier for most users.

Reference: http://live.gnome.org/Gedit/NewLanguage

Original comment by NThykier@gmail.com on 19 Sep 2010 at 2:34

GoogleCodeExporter commented 8 years ago
Cool - yup, the ~/.local path works too.  I've updated the README on trunk to 
include that.

Thanks again!

Original comment by Michael....@gmail.com on 19 Sep 2010 at 3:05