I was wondering is there a way to make a text highlighted to detect highlight code in colors, for example:
<?php and ?> would be orange <div> and </div> would be red, etc
Offline
WindowsExplorer wrote:
I was wondering is there a way to make a text highlighted to detect highlight code in colors, for example:
Code:
<?php and ?> would be orange <div> and </div> would be red, etc
i think a advanced text editor like VIM is what you are looking for (it highlights PHP syntax and many others)
Offline
WindowsExplorer wrote:
I mean a creator s you can make your custom color highlighting.
Though by your name I can guess you don't have a Mac, the Mac package Xcode allows syntax highlighting for many languages, including HTML, JS, CSS, PHP, C, C#, C++, Obj-C, etc.
EDIT: Dashcode is Web-specific. And not very scary, like Xcode.
Last edited by Hardmath123 (2011-10-29 08:03:32)
Offline
He doesn't want a syntax highlighted text editor. He want to PROGRAM one and is wondering how. All I can say it that you need to scan the text for tags and highlight them.
EDIT: 1000th post.
Last edited by MathWizz (2011-10-29 12:25:22)
Offline
MathWizz wrote:
He doesn't want a syntax highlighted text editor. He want to PROGRAM one and is wondering how. All I can say it that you need to scan the text for tags and highlight them.
EDIT: 1000th post.![]()
Great.
Your almost up to- never mind.
One way is to use jQuery. I thought there was a wrap() function, but I couldn't find it. So you can use append and prepend. You can insert font tags and add color attributes to it.
Offline