# Marking code parts

**URL:** <https://discourse.processing.org/t/marking-code-parts/6655>\
**Category:** Development\
**Created:** [December 16, 2018, 12:39pm UTC](https://discourse.processing.org/t/marking-code-parts/6655 "2018-12-16T12:39:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [December 16, 2018, 12:39pm UTC](https://discourse.processing.org/t/marking-code-parts/6655/1 "2018-12-16T12:39:44Z")

</div>

Hi, ive been coding for past 6 months and i have a questions;

- i dont know how how or if its possible to “color” certain parts of code. Like rect touching part of code is completley unrecognisable between X check and Y check and a lot of sub checks

so it will be like:

```auto
clr 1if(<Stuff1>) {
  <code>
  if(<Stuff1.1>) {
    <code>
  }
}...

```

offtopic:

- how can u raycast in 3D
- is it ok for 2D raycasting if i want it to be able to bounce on walls if given angle:

```auto
xSpeed = (x - mouseX) / dist(mouseX,mouseY,x,y);
//same for Y

x += xSpeed
y += ySpeed

```

---

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [December 16, 2018, 12:41pm UTC](https://discourse.processing.org/t/marking-code-parts/6655/2 "2018-12-16T12:41:03Z")

</div>

ignore “so it will be like” i thought this had color coding

---

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [December 16, 2018, 12:42pm UTC](https://discourse.processing.org/t/marking-code-parts/6655/3 "2018-12-16T12:42:34Z")

</div>

i will use coments but i would still like some color squares around it

```auto
----------
| <text> |
----------

```

with clr inside

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [December 16, 2018, 1:27pm UTC](https://discourse.processing.org/t/marking-code-parts/6655/4 "2018-12-16T13:27:29Z")

</div>

i not fully understand the question,  
do you talk about more features for the  
Processing IDE 3.4 sketch editor?

 ![snap-067](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b85b1cc58325f827a25b7c3f1249d6894b2e9375.png)  
so it looks more like  
 ![snap-066](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b0b9eb8ce606e7c0fda95a942bed77d6a84b8cca.png)

or GEANY

 ![2018-12-17_22-11-52_snap](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/c1357debd9056278f2d971f4c191f099420a3f1a.png)

---

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [December 16, 2018, 1:39pm UTC](https://discourse.processing.org/t/marking-code-parts/6655/5 "2018-12-16T13:39:27Z")

</div>

Kinda, cuz that would really help to orginise

---

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [December 16, 2018, 1:41pm UTC](https://discourse.processing.org/t/marking-code-parts/6655/6 "2018-12-16T13:41:03Z")

</div>

Mostly color things. But some other features could come handy

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [December 18, 2018, 6:07pm UTC](https://discourse.processing.org/t/marking-code-parts/6655/7 "2018-12-18T18:07:09Z")

</div>

I have edited your posts to make them more understandable by highlighting the code parts and using the \</\> button in the forum editor. This surrounds the code with three ` marks, formatting the code with basic syntax highlighting.
