# CodeEditorComponent background colour

**URL:** <https://forum.juce.com/t/codeeditorcomponent-background-colour/16720>\
**Category:** General JUCE discussion\
**Created:** [February 18, 2016, 5:24pm UTC](https://forum.juce.com/t/codeeditorcomponent-background-colour/16720 "2016-02-18T17:24:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [February 18, 2016, 5:24pm UTC](https://forum.juce.com/t/codeeditorcomponent-background-colour/16720/1 "2016-02-18T17:24:24Z")

</div>

I would like to set the background of this component to transparent so thaty I can draw things under it. However, setting the backgroundColourID to transparent does work. In the following example I was expecting the&nbsp;entire background to be bright green, but it ain't. I susepct that this component doesn't handle alpha values?&nbsp;

![](http://www.juce.com/sites/default/files/forum/attachments/Screenshot%20-%20180216%20-%2017%3A20%3A40.png)

I would be happy to draw directly onto the CodeEditorComponent, but I don't want to mess with the JUCE source. Any ideas/suggestions?&nbsp;

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 18, 2016, 5:28pm UTC](https://forum.juce.com/t/codeeditorcomponent-background-colour/16720/2 "2016-02-18T17:28:03Z")

</div>

You'd have to setOpaque (false)

---

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [February 18, 2016, 5:53pm UTC](https://forum.juce.com/t/codeeditorcomponent-background-colour/16720/3 "2016-02-18T17:53:54Z")

</div>

I see through this method every time&nbsp; ![wink](http://www.juce.com/sites/all/libraries/ckeditor/plugins/smiley/images/wink_smile.gif "wink")
