{"id":815,"date":"2020-09-06T21:29:42","date_gmt":"2020-09-06T19:29:42","guid":{"rendered":"https:\/\/www.kassebaum.eu\/?p=815"},"modified":"2020-09-06T21:33:10","modified_gmt":"2020-09-06T19:33:10","slug":"did-you-know-3","status":"publish","type":"post","link":"https:\/\/www.kassebaum.eu\/blog\/2020\/09\/06\/did-you-know-3\/","title":{"rendered":"Did you know&#8230;?"},"content":{"rendered":"<p>Did you know that <a href=\"https:\/\/www.embarcadero.com\/products\/delphi\" rel=\"noopener noreferrer\" target=\"_blank\">Delphi<\/a> allows to add associated files to existing units? For example you can add .html and .css files to a unit, so that they are shown in the project manager. Here is a screenshot:<\/p>\n<p><a href=\"https:\/\/www.kassebaum.eu\/wp-content\/uploads\/2020\/09\/ProjectManager.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-824\" src=\"https:\/\/www.kassebaum.eu\/wp-content\/uploads\/2020\/09\/ProjectManager-300x259.png\" alt=\"\" width=\"300\" height=\"259\" srcset=\"https:\/\/www.kassebaum.eu\/blog\/wp-content\/uploads\/2020\/09\/ProjectManager-300x259.png 300w, https:\/\/www.kassebaum.eu\/blog\/wp-content\/uploads\/2020\/09\/ProjectManager.png 311w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This can be done by adding the following line to the .dpr file<\/p>\n<pre class=\"lang:delphi decode:true \" >\r\nprogram Project1;\r\n\r\nuses\r\n  Vcl.Forms,\r\n  Unit1 in 'Unit1.pas' {Form1: TForm} {*.html} {*.css};\r\n...\r\n<\/pre>\n<p><a href=\"https:\/\/www.tmssoftware.com\/site\/tmswebcore.asp\" rel=\"noopener noreferrer\" target=\"_blank\">TMS Web Core<\/a> uses this feature in order to add an .html file to a web form and an optional .css file as you can see in the screenshot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know that Delphi allows to add associated files to existing units? For example you can add .html and .css files to a unit, so that they are shown in the project manager. Here is a screenshot: This can &hellip; <a href=\"https:\/\/www.kassebaum.eu\/blog\/2020\/09\/06\/did-you-know-3\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,34,35,38,39,23,27,3,36,37,1],"tags":[],"class_list":["post-815","post","type-post","status-publish","format-standard","hentry","category-delphi","category-rad-studio-10-1-berlin","category-rad-studio-10-2-tokyo","category-rad-studio-10-3-rio","category-rad-studio-10-4-sydney","category-rad-studio-xe7","category-rad-studio-xe8","category-tipsandtricks","category-tms-software","category-tms-web-core","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/posts\/815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/comments?post=815"}],"version-history":[{"count":12,"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/posts\/815\/revisions"}],"predecessor-version":[{"id":829,"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/posts\/815\/revisions\/829"}],"wp:attachment":[{"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/media?parent=815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/categories?post=815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kassebaum.eu\/blog\/wp-json\/wp\/v2\/tags?post=815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}