Question: So this isnt like a technical question, just some advice.

This is my issue:
A few years ago I had a medical problem but I'll spare you the details.
One of the results is a lack of concentration and motivation.
How it works is that I can get a burst of enthusiasm and work away at a project for hours on end, then it's like I hit a large wall (literally from one moment to the next, not gradual) where I can't continue and the project gets abandoned.

Now motivation is something you can't really fix with an app.
But,
I have seen that there are apps that allow you to write without distractions, but I do programming (currently HTML, PHP and CSS but also a lot of Python).
Is there an app that either allows me to kinda make previous code typed not seem so daunting, or perhaps an app that can make me focus solely on the task at hand?

I know it's a bit of an odd question, but any ideas are very welcomed, even if it's just advice.

Thanks in advance

Answer: 
There is a writing app called FocusWriter which is a very distraction free text editor. It does however not support any syntax highlighting.

It is available for free download in the Ubuntu Software Center.

And here is a link to their webpage:
<http://gottcode.org/focuswriter/>
I found a solution to the distraction editor.

Having checked out focuswriter, I started looking through Google for similar apps and stumbled upon Marave.
It doesn't work perfectly as I need to start it with sudo in order to save, but it's fullscreen and distraction free, thanks very much for the input