Embedded scripts interface

Bug #795849 reported by Fernando Lucchesi on 2011-06-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fernando Lucchesi

Bug Description

Develop an interface to deal with scripts embedded inside of the SVG.

- Get the current external scripts interface inside of a tab
- Make a list of embedded scripts
- Make a text box containing the code of the selected script
- Make the button to create a new embedded script

su_v (suv-lp) on 2011-06-11
Changed in inkscape:
importance: Undecided → Wishlist
jazzynico (jazzynico) wrote :

A very simple Python script interface was available in 0.46 (screen-shot attached).
In 0.47, someone tried to rewrite it in Java, but it caused issues and the whole feature had to be disabled.
Maybe the source code of the 0.46 or 0.47 version is still in the trunk, if you need to start from something.

jazzynico (jazzynico) wrote :
su_v (suv-lp) wrote :

Linking to the blueprint «Scripting IDE for svg»

@Fernando - please comment and revert if you don't agree.

Thank you! it is still there(ui/dialog/scriptdialog.cpp), I'll take a look.

I agree, thank you for linking it!

So far, I was able to do the first step.

However, Inkscape crashes while removing an external script, if the svg wasn't saved to disk yet, so I still have to fix this.

su_v (suv-lp) wrote :

Initial commits (by Felipe Sanches) in revision 10312, 10318 and 10319.

Changed in inkscape:
assignee: nobody → Fernando Lucchesi (fernandolbastos)
status: New → In Progress

My mentor gave the idea of implementing syntax highlighting.

In order to do that, I was thinking of using gtksourceviewmm. Is it possible(desirable) to add this lib to Inkscape? Should I keep working on the version without the lib, and then use some ifdefs and a "./configure" flag to choose between the two?

(I've tried including the lib, but I couldn't figure out where to add it in autotools)

su_v (suv-lp) wrote :

> (…) using gtksourceviewmm. Is it possible(desirable)
> to add this lib to Inkscape?

It might be better to discuss this question on the 'inkscape-devel' mailing list, as well as any questions about how to best implement the configure option to test for the external dependency.

Jon A. Cruz (jon-joncruz) wrote :

One idea would be to first check which versions of gtksourceview and gtksourceviewmm are shipped with various distros. Check against the base list at

*If* it is common enough, then it might be a good idea. But checking will also allow us to know which versions we can count on and which versions need to be optional.

Dave Crossland (davelab6) wrote :

I think making this optional with ifdefs and a "./configure" flag is good.

Qantas94Heavy (qantas94heavy) wrote :

This is already present in Inkscape 0.92.3 and probably earlier, so marking this as fixed.

Closed by: https://gitlab.com/Qantas94Heavy

Changed in inkscape:
status: In Progress → Triaged
status: Triaged → Fix Released
tbnorth (terry-n-brown) on 2019-11-29
tags: added: bug-migration
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints