is it possible to import code into Inkscape and save it as a .svg
file?
i want to important this code and save it as a svg file:
<svg class="defs-only" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<symbol id="wave">
<svg viewBox="0 0 100 50" preserveAspectRatio="none" >
<g>
<path d="M100,30 Q70,40 50,30 T0,30 v20 h100Z"
style="stroke-linejoin:round; stroke:#f6f6f6" stroke-width="0"/>
</g>
</svg>
</symbol>
</svg>
In Inkscape there's xml text editor (Edit > XML editor...
) panel. There you can follow these steps:
svg:path
(this will create it with an id
)name
on the box next to the set
button, and the value in the box below. Once you've enter the values click Set
. This may seem obvious, but it took me a while to figure it out.There's more detailed information about the xml editor on Tavmjong Bah's Guide to a vector drawing program
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With