Jump to content

PeterPanettone

Members
  • Content Count

    1354
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by PeterPanettone


  1. 7 hours ago, Ian Barker said:

    You need to use a <PRE> tag and then set the background. This article tells you how: https://stackoverflow.com/questions/10349883/can-i-add-a-background-to-a-pre-on-blogger

    There are better ways of doing it - I suggest you read this post: https://blog.paoloamoroso.com/2021/10/how-to-add-code-syntax-highlighting-to.html

    Setting the color in the pre-tag still sets the background color for the characters and not for the whole paragraph.

     

    Even the method described by paoloamoroso does not work for me.


  2. Usually, this behavior is controlled by HideSelection, which is nicely demonstrated in this example (try it out - it does work perfectly):

     

    https://docwiki.embarcadero.com/CodeExamples/Sydney/en/HideSelection_(Delphi)

     

    I don't know which control type Embarcadero uses for the FormDesigner Structure tree - but using a control type that supports HideSelection can easily overcome the annoyance.

     

    Even a simple TTreeView has this property:

     

    image.png.83b5853f12335aedf2960c7f0ce5f0f0.png


  3. 8 hours ago, corneliusdavid said:

    Yes, this has annoyed me in nearly every Windows program for many years. I often want to highlight something or select a row in a list, then go to a different program and look back at the other program to type something in that is similar or whatever and when I look back, the highlight is gone until I switch focus back to that program. I don't understand why someone thought this was better and designed the OS this way.

    As I said, correctly configuring the control a developer could easily override this annoyance.


  4. 1 hour ago, Lars Fosdal said:

    Considering that Delphi runs fine under Windows for ARM in Parallells on MacOS, it is likely that it will run well on Windows for ARM without a VM layer as well.

    ARM is not the same as Parallels on Mac. I am running Delphi 12.1 in Parallels (in Coherence mode) on a 2019 Intel MacBook Pro.


  5. I am exporting this source code by using the excellent GExperts Source Exporter:

     

    image.thumb.png.f006c94b60bdade4fc62e325e9d01677.png

     

    I am using this export mode, and then click the Copy button, which copies the selected source code to the clipboard:

     

    image.png.000a6a8993d3db80d9840e09353627cf.png

     

    In a post on https://www.blogger.com, in Compose view, I paste the clipboard content:

     

    image.thumb.png.64e3be226722bc7481aa456a96991a9c.png 

     

    Then, I select the inserted text and use the command "Text background colour":

     

    image.thumb.png.88b095ce16cdeb3af0f699979069db2b.png 

     

    This creates the following result:

     

    image.thumb.png.b9414069d5730d2cc910886d38a66666.png 

     

    However, only the text characters have a dark background. But I want the whole paragraph to have a dark background. (It should look exactly as in the Delphi Source Code Editor).

     

    How can I achieve this?

     

    I have tried tugging the HTML code for many hours but to no avail.


  6. 53 minutes ago, Uwe Raabe said:

    To reduce the need to keep that file updated with every new Delphi version I just changed that phrase into a version agnostic alternative. Will be available with the next update.

    You could use a macro in your build process, e.g: %CurrentDelphiVersions%


  7. 21 hours ago, Jim McKeeth said:

    I read there is a new emulation layer that is supposed to be faster, and frankly the last version was pretty good, so I'm optimistic. Will be nice to get an updated IDE and compiler though.

    This is good news!

     

    Pipe dream: Imagine CoPilot watching my work in the IDE in real-time and giving me intelligent advice based on my preset specifications:

     

    "Hey user, your current implementation of the XY algorithm is 75% inefficient. Try this one ..."

     

    Or: "Hey, user, I've compiled your code and run your app while you were away drinking coffee. I've found this bottleneck: ... I suggest this change in your code: ... BTW, you should stop drinking too much coffee! Try this new low-coffeine organic brand: ..."

     

    Or: "Hey, developer, this icon looks ugly and could lead to semantic confusion among users. I've created a better one - try it out: ..."

     

    Or: "Hey, dev, I have registered your app in the Microsoft Store as you requested. Sign here to finalize the registration."

     

    Or: "Hey D, your app sales are up 217% this month. Should I invest in Microsoft stock like I suggested?"

     

    Did an AI dream come through?


  8. Did anyone already run the Delphi IDE on the brand new Microsoft Surface Pro ("CoPilot+PC") with Qualcomm Snapdragon ARM CPU + Integrated Neural Processing Unit ("NPU")?

     

    Apparently, the Copilot AI could optionally watch my programming in the IDE and give me real-time suggestions and error corrections about the code I am writing (or optionally write the code for me according to my specifications)!


  9. Opening an additional Editor with Split:

     

    image.thumb.png.bd01d8a6df261f7e8c732e66fa87e3bc.png 

     

    As soon as I drag the additional Editor to my secondary monitor, this error message is shown:

     

    image.thumb.png.e68cc848b029cd21d47fd854b0e6aced.png 

     

    Then, I close and restart the IDE. This restores the additional Editor on the secondary monitor and displays the same error message on the secondary monitor. But this time, the error message does not go away, and I can only close the IDE in the Task Manager! So, the Split feature is unusable for me!

     

    Can anyone confirm this?

×