Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 788c2d8

Browse files
committed
Change pre to pre-line
1 parent daffdf0 commit 788c2d8

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function format() {
139139
oldComments = comments.length
140140

141141
for (var c = 0; c < comments.length; c++) {
142-
comments[c].style.whiteSpace = "pre";
142+
comments[c].style.whiteSpace = "pre-line";
143143
comments[c].style.marginLeft = "5px";
144144
comments[c].innerHTML = parse(comments[c].innerHTML);
145145
}

manifest.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"name": "ScratchFormat",
33
"description": "Rich text editing in Scratch.",
4-
"version": "1.0",
5-
"permissions": [
6-
"activeTab",
7-
"tabs"
8-
],
4+
"version": "2.0",
95
"content_scripts": [
106
{
117
"matches": ["https://scratch.mit.edu/users*","https://scratch.mit.edu/studios*", "https://scratch.mit.edu/projects*"],
@@ -17,7 +13,6 @@
1713
"default_title": "ScratchFormat",
1814
"default_icon": "logo.png",
1915
"default_popup": "popup.html"
20-
2116
},
2217
"manifest_version": 2,
2318
"short_name": "SF"

popup.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
</head>
33
<body>
44
<center>
5+
<img src="logo.png">
56
<h2>ScratchFormat 2.0</h2>
6-
Thank you for using ScratchFormat. To use it, go <br>
7-
on a scratch comment editor and click on it. The formatter<br>
8-
will automatically show up, and move to different comment boxes<br>
9-
when you click on them.
10-
11-
<br>
7+
<p>
8+
Thank you for using ScratchFormat. <b>To use it, go
9+
on a scratch comment editor and click on it.</b> The formatter
10+
will automatically show up, and move to different comment boxes
11+
when you click on them.
12+
</p>
1213
<p>
1314
Made by <a href="https://scratch.mit.edu/users/pufflegamerz" target="_newtab">@pufflegamerz</a>.
1415
<br>
@@ -17,9 +18,9 @@ <h2>ScratchFormat 2.0</h2>
1718
</center>
1819
</body>
1920
<style>
20-
body {
21-
width: 500px;
22-
height: 200px;
21+
html {
22+
width: 200px;
23+
height: 350px;
2324
background-color: lightblue;
2425
}
2526
</style>

0 commit comments

Comments
 (0)