Changeset 3824904
- Timestamp:
- 11/26/2026 01:01:01 AM (less than one hour ago)
- Location:
- iyo-block-code-renderer-scratch
- Files:
-
- 2 edited
-
tags/1.1.7/readme.txt (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iyo-block-code-renderer-scratch/tags/1.1.7/readme.txt
r3698614 r3824904 3 3 Tags: scratch, education, code, block, coderdojo 4 4 Requires at least: 5.8 5 Tested up to: 7. 15 Tested up to: 7.2 6 6 Requires PHP: 7.4 7 7 Stable tag: 1.1.7 … … 27 27 3. Add a `scratchblocks` class element to your content and write Scratch pseudocode inside it: 28 28 29 `< divclass="scratchblocks">29 `<code class="scratchblocks"> 30 30 when green flag clicked 31 31 say [Hello!] 32 </ div>`32 </code>` 33 33 34 34 Note: Manually escape `<` and `>` characters (e.g. `<` and `>`) inside the block. 35 36 Note: Use `<code>` (or `<pre>`), not `<div>`. WordPress's `wptexturize` filter can rewrite plain 37 punctuation such as a hyphen surrounded by spaces (` - `) into a dash character before the page is 38 sent to the browser, and it only leaves the contents of `<pre>`, `<code>`, `<kbd>`, `<style>`, 39 `<script>`, and `<tt>` tags untouched. If the block is inside a `<div>`, an operator like `-` can 40 be silently corrupted, which makes scratchblocks render it as an unrecognized block (shown in red) 41 instead of the intended operator block. 35 42 36 43 == Frequently Asked Questions == … … 39 46 40 47 Currently English (`en`) and Japanese (`ja`) are enabled. 48 49 = Why does an operator like `-` sometimes render in red instead of its normal color? = 50 51 This usually means the character reaching the browser is not a plain ASCII hyphen. WordPress's 52 `wptexturize` filter can rewrite a hyphen surrounded by spaces into a dash character, and it only 53 skips this rewriting inside `<pre>`, `<code>`, `<kbd>`, `<style>`, `<script>`, and `<tt>` tags. 54 Write your Scratch pseudocode inside `<code class="scratchblocks">...</code>` (or 55 `<pre class="scratchblocks">...</pre>`) rather than a `<div>` to avoid this. 41 56 42 57 = Where does the rendering happen? = -
iyo-block-code-renderer-scratch/trunk/readme.txt
r3698612 r3824904 3 3 Tags: scratch, education, code, block, coderdojo 4 4 Requires at least: 5.8 5 Tested up to: 7. 15 Tested up to: 7.2 6 6 Requires PHP: 7.4 7 7 Stable tag: 1.1.7 … … 27 27 3. Add a `scratchblocks` class element to your content and write Scratch pseudocode inside it: 28 28 29 `< divclass="scratchblocks">29 `<code class="scratchblocks"> 30 30 when green flag clicked 31 31 say [Hello!] 32 </ div>`32 </code>` 33 33 34 34 Note: Manually escape `<` and `>` characters (e.g. `<` and `>`) inside the block. 35 36 Note: Use `<code>` (or `<pre>`), not `<div>`. WordPress's `wptexturize` filter can rewrite plain 37 punctuation such as a hyphen surrounded by spaces (` - `) into a dash character before the page is 38 sent to the browser, and it only leaves the contents of `<pre>`, `<code>`, `<kbd>`, `<style>`, 39 `<script>`, and `<tt>` tags untouched. If the block is inside a `<div>`, an operator like `-` can 40 be silently corrupted, which makes scratchblocks render it as an unrecognized block (shown in red) 41 instead of the intended operator block. 35 42 36 43 == Frequently Asked Questions == … … 39 46 40 47 Currently English (`en`) and Japanese (`ja`) are enabled. 48 49 = Why does an operator like `-` sometimes render in red instead of its normal color? = 50 51 This usually means the character reaching the browser is not a plain ASCII hyphen. WordPress's 52 `wptexturize` filter can rewrite a hyphen surrounded by spaces into a dash character, and it only 53 skips this rewriting inside `<pre>`, `<code>`, `<kbd>`, `<style>`, `<script>`, and `<tt>` tags. 54 Write your Scratch pseudocode inside `<code class="scratchblocks">...</code>` (or 55 `<pre class="scratchblocks">...</pre>`) rather than a `<div>` to avoid this. 41 56 42 57 = Where does the rendering happen? =
Note:
See TracChangeset
for help on using the changeset viewer.