From dc7b7075a08f06d1ca4d9bae7961b09055cd974b Mon Sep 17 00:00:00 2001 From: Matteo Marsala Date: Wed, 28 Aug 2024 15:38:06 +0200 Subject: [PATCH] Test: fix md --- .../embedding-create-iframes.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/embedding-create-iframes.md b/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/embedding-create-iframes.md index 0bcfac877f..fec191a2ee 100644 --- a/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/embedding-create-iframes.md +++ b/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/embedding-create-iframes.md @@ -4,7 +4,7 @@ description: 'Learn about different methods when embedding your sketches in a we author: 'Karl Söderby' --- -The Cloud Editor is a great tool for creating and uploading programs while also collecting all of your sketches in one place. Another great feature is embedding them as iframes, such as articles, blogposts or journals. +The Cloud Editor is a great tool for creating and uploading programs while also collecting all of your sketches in one place. Another great feature is embedding them as iframes, such as articles, blogposts or journals. To embed an iframe is very easy, and we just need to copy and paste a link from our sketch in the Cloud Editor. But we can also do a series of modifications to that iframe, and in this tutorial we will take a look at how to do that. @@ -24,7 +24,7 @@ It should look something like this: This iframe can now simply be embedded in a HTML page, and it will look like this: - + But there are many ways we can modify the iframe to look different. So let's take a look the available modifications we can make! @@ -39,7 +39,7 @@ To do this, we just need to add the following code to the end of the URL: ``` The result is the following: - + And the full URL should look like this: @@ -58,7 +58,7 @@ Next is the highlighting feature. To use this, simply add the following lines to The result is that line 3 and 4 are highlighted: - + And the full URL should look like this: @@ -74,25 +74,25 @@ You can highlight as many lines as you want, and it is easily configurable. For ## Manually changing the size of your widget -If we want to change the size of the widget, we just need to modify the dimensions of the iframe. +If we want to change the size of the widget, we just need to modify the dimensions of the iframe. The following dimensions are default: ```markup -style="height:510px;width:100%;margin:10px 0" +style="height:510px;width:100%;margin:10px 0" ``` But we can change them up a bit: ``` -style="height:200px;width:50%;margin:10px 0" +style="height:200px;width:50%;margin:10px 0" ``` Which will look like this: - + -## Automatically re-sizing your sketches +## Automatically re-sizing your sketches We can also choose to automatically re-size our iframes. This is simply done by first including this script in your HTML file: @@ -100,11 +100,11 @@ We can also choose to automatically re-size our iframes. This is simply done by ``` -And then using the class `arduino-sketch-iframe` in your HTML element. +And then using the class `arduino-sketch-iframe` in your HTML element. ## Summary -There are several cool ways of working with iframes from the Cloud Editor, and it is a really easy process that requires very little coding. +There are several cool ways of working with iframes from the Cloud Editor, and it is a really easy process that requires very little coding. The Cloud Editor helps you keep track on all of your sketches, and with the iframes, including your projects on other pages has never been easier.