Recent

Author Topic: Tip of the day  (Read 403 times)

mangakissa

  • Hero Member
  • *****
  • Posts: 1097
Tip of the day
« on: July 20, 2020, 08:39:20 am »
On the lazarus website there's always a 'tip of the day'.
Is there a way to find it back.

There was one tip to vertical center several lines.

is:
Code: Pascal  [Select][+][-]
  1. var1 : string;
  2. number1 : integer;
  3. myfirstname : string;
  4.  

become:
Code: Pascal  [Select][+][-]
  1. var1        : string;
  2. number1     : integer;
  3. myfirstname : string;
  4.  
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

jwdietrich

  • Hero Member
  • *****
  • Posts: 1139
    • formatio reticularis
Re: Tip of the day
« Reply #1 on: July 20, 2020, 08:57:06 am »
The homepage is dynamically created. The source for the "Tip of the day" is in the file tips.txt. From there you may find previously displayed tips, but note that this file is regularly modified and updated.

The SVN archive of this file may help finding even older tips.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.10 | FPC 3.2.0 | PPC, Intel, ARM | macOS, Windows, Linux

mangakissa

  • Hero Member
  • *****
  • Posts: 1097
Re: Tip of the day
« Reply #2 on: July 20, 2020, 09:16:13 am »
Okay. Is there also a wiki with these handfull of things with the editor?
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1003
  • Former Delphi 1-7, 10.2 User
Re: Tip of the day
« Reply #3 on: July 20, 2020, 09:25:43 am »
The attached settings result in:

Code: Pascal  [Select][+][-]
  1. var
  2.   Form1  :TForm1;
  3.   Test   :Integer;

CTRL-D to fix the spacing.
o Lazarus v2.1.0 r63871, FPC v3.3.1 r46876, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware Fusion VM)
o FPC 3.0.4, FreeBSD 12.2-STABLE r365646 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (Parallels VM)

 

TinyPortal © 2005-2018