Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Wiki Discussion
  4. Pasting source code in wiki?
QtWS25 Last Chance

Pasting source code in wiki?

Scheduled Pinned Locked Moved Wiki Discussion
5 Posts 2 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mairas
    wrote on last edited by
    #1

    Hi,

    what's the proper syntax for pasting source code to Wiki pages? The WikiHelp page instructs you to use at characters to wrap code but that breaks horribly if the code has any at characters in itself (the character apparently is parsed anywhere, not just on an empty line).

    Alternatively, the linked Textile cheat sheet promotes the use of pre tags to wrap code but that appears to break even more horribly. If I try to do that, only the latter of my code snippets is shown, with all the text in the first one and between them being discarded silently.

    See this page:

    "http://developer.qt.nokia.com/wiki/Building_PySide_on_Linux":http://developer.qt.nokia.com/wiki/Building_PySide_on_Linux

    So, what to do?

    I'm adding a proper Wiki engine to my wishlist regarding Qt DevNet... :-)

    [edit: fixed link / chetankjain]

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      Well currently the only way to do that would be to use & #64; .... of course without spaces, a bit cumbersome, but I'm hoping something that will be fixed soon :)

      @
      this is a test code with @
      QString var("chetankjain@qt.com");

      @

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mairas
        wrote on last edited by
        #3

        Thanks, it works. Cumbersome, indeed, but I guess I can live with it for the time being. :-)

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          Yes, I had similar issue "here":http://developer.qt.nokia.com/wiki/QString_variable_to_Javascript

          my script tags were coming as [removed] ... then figured it out :)

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xsacha
            wrote on last edited by
            #5

            Rather than removing scripts, could they instead have the code formatting attached to them?
            I wanted to use '[removed]' example in a line and got a nasty [removed] too.

            Edit: Oh, wow. I thought if I separated the colon and the words it would be fine.
            @jav* script :@
            Changing the '*' to an 'a' gets '[removed]', even in a code block.

            • Sacha
            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved