Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. [Suggestion] reading long lines in code blocks
Forum Updated to NodeBB v4.3 + New Features

[Suggestion] reading long lines in code blocks

Scheduled Pinned Locked Moved Qt.io webservices
13 Posts 5 Posters 5.0k Views 1 Watching
  • 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #3

    pan would just be much easier, pan right-read- pan left to get back

    scroll has many more steps .. scroll browser down, scroll horiz right, scroll browser up, read, scroll browser down, scroll horiz left, scroll browser up :(

    but I agree, just mandatory word wrap would be so much easier to implement :)

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #4

      I would prefer to implement both. Word wrap to see everything, and additionally - when analyzing something like the link in the original post - the possibility to enlarge the code section.

      Maybe with a user preference in the settings page to choose between word wrap and scroll bars?

      Also, in a standard browser window the code section is hardly 80 characters wide.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on last edited by
        #5

        Well it probably depends on your browser as well. Some programs (and some browsers probably also) allow sideways scrolling through the wheel (push it to the side), but Opera for one doesn't do this at the moment. Haven't checked other browsers. When focus is on the code div I can use the arrows to scroll sideways though.

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #6

          That works with Safari on Mac too, but still I prefer enlarging the code view, I personally don't like "moving lines" :-)

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maxvanceffer
            wrote on last edited by
            #7

            Maybe make collapsing of functions just like in Qt Creator editor ?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mgran
              wrote on last edited by
              #8

              We're using a 3rd party tool for the syntax highlighting: "http://alexgorbatchev.com/SyntaxHighlighter/":http://alexgorbatchev.com/SyntaxHighlighter/

              We will have to leave feature development for that module to them, but after surfing the forum there I found a suggested CSS change for wrapping long lines. We shall give it a spin. I'm sure we will run into IE compatibility issues, but let's see.

              Project Manager - Qt Development Frameworks

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Smar
                wrote on last edited by
                #9

                Mandatory word wrap is more clear than any kind of block system; for me main problem is actually having to move the div to different position to read part of the code.

                In side note, Opera also support vertical panning, and has supported it very long. You only need to enable it, like on Linux, you need to enable the panning in first place.

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Franzk
                  wrote on last edited by
                  #10

                  [quote author="mariusg" date="1289223937"]I found a suggested CSS change for wrapping long lines. We shall give it a spin. I'm sure we will run into IE compatibility issues, but let's see.[/quote]Do sane people still use IE? (couldn't help myself there...)

                  [quote author="Smar" date="1289228315"]In side note, Opera also support vertical panning, and has supported it very long. You only need to enable it, like on Linux, you need to enable the panning in first place.[/quote]Right. I wasn't aware of that.

                  "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  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
                    #11

                    [quote author="Franzk" date="1289230740"]Do sane people still use IE? (couldn't help myself there...)[/quote]

                    No! but there are some insane websites still out there :(

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mgran
                      wrote on last edited by
                      #12

                      I actually have this t-shirt :)

                      "http://atendesigngroup.spreadshirt.com/men-s-black-ie6funeral-com-t-shirt-A5715734/customize/color/2":http://atendesigngroup.spreadshirt.com/men-s-black-ie6funeral-com-t-shirt-A5715734/customize/color/2

                      But seriously, we still have many IE6 visits to qt.nokia.com where we support it. Here on DevNet we don't support IE6 but we do our best for IE7+.

                      Project Manager - Qt Development Frameworks

                      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
                        #13

                        good t-shirt ! heh heh

                        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