Inkscape.org
Forum Issues, News, and Announcements Is there a way to get out of WYSIWYG posting?
  1. #1
    Lady Aleena Lady Aleena @Lady_Aleena
    *

    Hello. Is there a way to get out of this WYSIWYG way of posting and see the post raw? I am having trouble apply "code" to words within sentances. For example, I tried to apply code to "<style>" just now, and the string disappeared.  Also, I was going to try to post a code block, but when I applied "wrap code" to it, all my line breaks disappeared. It became a jumbled mess.

    So, is there a way to post without WYSIWYG and with markdown of some sort?

  2. #2
    Tyler Durden Tyler Durden @TylerDurden
    *

    I don't think so.

     

    FWIW, I just tested those markup tools and they seem to work as follows (reverse of what you might expect):

    Wrap code will embed the selected text into the post,  so img, etc. strings from outside will work via that tool.

    "Formatted" in the style dropdown will allow posting of selected text strings as code.

    (I haven't figured out what "address" does yet.)

     

    Have a nice day.

    TD

  3. #3
    brynn brynn @brynn

    If TD's test doesn't solve your problem, can you show an example of the Wrap Code feature?  If it's broken, we need to put in a bug report.  I would guess it doesn't have much formatting, but it probably should have at least a little.

    I'm not sure what you mean by applying a code to "<style>" .  But please feel free to share an example.  Then someone can either tell you if it can do what you want, or how to do it (or make a bug report if it's broken).

  4. #4
    Lady Aleena Lady Aleena @Lady_Aleena
    *

    brynn, see how I have code within the paragraphs in this post: https://gitlab.com/inkscape/inbox/issues/790#note_204909692

    I would like to apply that kind of thing to posts here, but everytime I click the <> in the toolbar on a word in a sentenace, the word disappears, maybe. I would have to save and see if the previous "disappears" disappeared.

    I just prefere posting with markdown instead of WYSIWYG. I'm old fashoned.

    Edit: I just saved to see if the the first instance of the word "disappears" disappeared, and it did not. However, it did not show up in a monospace font of any kind either.

    Edit 2: It looks like I can not post code at all now. Every time I paste some code into the edit box and click the <> button, the text disappears. I guess if I have an issue that requires code, I will use the bug tracking system. They have markdown over there.

  5. #5
    Tyler Durden Tyler Durden @TylerDurden

    <> is for embedding.

    The above is embedded using "wrap code".

     

    Text style 'Formatted" is for posting readable code.  

    e.g. the code to embed the above image.

    <img src="https://dl.dropbox.com/s/lykqotv65auhh6b/Talk_Freely_-_Inkscape_Forum_-_Google_Chrome_2019-08-25_16-18-38.png" height="50%" width="50%">

     

    Have a nice day.

    TD

  6. #6
    brynn brynn @brynn

    You mean the red text with pink highlight?  I guess this forum just doesn't have that.  Although it might be nice to have a special way to display Inkscape's key shortcuts.

    I would have thought the Wrap Code button was to display code, and not what the code produces.  But historically this forum hasn't need to display code much anyway.

    When I tried to use the Formatted option for Paragraph Format, it doesn't format only selected text.  It formats the entire paragraph.  So it wouldn't work for key shortcuts, or like the example Lady Aleena showed (at GL).

    Yeah this forum only has wysiwyg.

    As far as I know, this forum software is in a trial period of undefined length.  If we find it doesn't meet our needs, we can always switch to a more traditional type of forum software.

     

  7. #7
    Lady Aleena Lady Aleena @Lady_Aleena
    *

    For a forum that discusses software, at times code would need to be used. For example, what if someone had a question about a line in Inkscape's config file? They would need to put that line of code somewhere, like "Can I reorganize 'group id="dashes"'?" with the 'group id="dashes"' in a monospace font (without a background color is okay). There are people out there who know just enough to be dangerous (and I do fall into that category occassionally) who make a change to a config file and do not know why it is not working. Also, if there is, one day, a board on here for general svg discussion, code in monospace would definitely need to posted neatly.

    I believe that the 'wrap code' button needs to be renamed.

    Edit: You have a board here about writing extensions, and that board would need a way to paste in code blocks.

  8. #8
    brynn brynn @brynn

    Well, it's primarily a user support forum.  We would only discuss software in regard to how it functions, rather than how it's coded.  And developers already have their own venues for discussing the code.

    But I guess you're right.  We've never had a board dedicated to writing extensions before.  And now that the forum is on the website, we're hoping to get more participation by developers.

    Would you like to make the request?  I can do it, if you don't want to.  https://gitlab.com/inkscape/inkscape-web/issues

  9. #9
    Tyler Durden Tyler Durden @TylerDurden
    *

    The formatted option provides a way to post code blocks.

    The inline highlighted text on gitlab is not essential.

    Devs are not the only folks interested in code blocks...  they are a good way to explain SVG and the XML editor to end-users.

    "Wrap code" makes sense when you know what it does.

     

    Have a nice day.

    TD

  10. #10
    Lady Aleena Lady Aleena @Lady_Aleena
    *

    This is a test of formatted text.

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <svg
      xmlns="http://www.w3.org/2000/svg"
      xmlns:svg="http://www.w3.org/2000/svg"
      xmlns:cc="http://creativecommons.org/ns#"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:rdf="http://www.w3.org/1999/02/12-rdf-syntax-ns#"
      xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
      xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
      inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
      sodipodi:docname="genre.svg"
      width="1262"
      height="2137"
      id="Genres_image"
    >
    
      <title id="Genres_title">Genres</title>
      <desc id="Genres_description">A chart of fictional genres.</desc>
      <style id="Genres_styles" type="text/css">
        rect, text, path { stroke-width: 1; stroke-opacity: 1; }
        rect       { width: 120px; height: 30px; paint-order: stroke; fill: #ffffff; fill-opacity: 0.6; stroke: #002277; stroke-width: 2; }
        text       { fill: #000000; fill-opacity: 1; font: 400 10pt sans-serif; line-height: 12px; text-align: center; text-anchor: middle; dominant-baseline: middle; }
        path       { fill: none; stroke: #002277; }
        path.dash  { stroke-dasharray: 3, 2; }
      </style>
      <g transform="translate(  10,  10)">
        <g transform="translate(   1,   1)" id="Fiction">
          <rect x="0"  y="0" width="120" height="30" id="Fiction_box" />
          <text x="60" y="15" id="Fiction_text">Fiction</text>
        </g>
        <g transform="translate(   1, 271)" id="Documentary">
          <rect x="0"  y="0" width="120" height="30" id="Documentary_box" />
          <text x="60" y="15" id="Documentary_text">Documentary</text>
        </g>
    
      </g>
    </svg>

    Edit: It needs a way to scroll right when the text overflows.

    Edit 2: If you are interested, the above is the beginning of Genre. chart

  11. #11
    Martin Owens Martin Owens @doctormo🌹🧀

    These are valid additions. The text formatter is a seperate piece (ckeditor/javascript) so it should be fairly easy to change for someone who knows a bit of javascript.

  12. #12
    Tyler Durden Tyler Durden @TylerDurden

    I get the horizontal scrollbar on overflow. I'm using Chrome on Win.

     

    Have a nice day.

    TD

  13. #13
    Lady Aleena Lady Aleena @Lady_Aleena

    I'm on Firefox-ESR 60.7.2 on Debian 10 (Buster) using XFCE 4.12.5.

  14. #14
    Tyler Durden Tyler Durden @TylerDurden

    Older Firefox on Mint XFCE also has no scrollbars and fails to horizontally scroll with arrow keys.

  15. #15
    Tyler Durden Tyler Durden @TylerDurden

    Update: H scrollbar works in FF 50.0.2, under Mint 18.1 Serena (Mate 64).

Inkscape Inkscape.org Inkscape Forum Forum Issues, News, and Announcements Is there a way to get out of WYSIWYG posting?