Comments (4)
"I doubt you wrote your own."
actually, Valerio did write it himself ;), though it is based on
dp.SyntaxHighlighter.
(http://googlecode.com/p/syntaxhighlighter)
the bug is in the regexp we are using for double quoted strings... thanks for
the report, we're looking into a fix.
Original comment by [email protected]
on 31 Mar 2008 at 2:52
from snippely.
The problem is not just PHP. To fix it change the RegExp in highlighter.js
line 136 to:
doubleQuotedString: (/"(?:\.|(\\\\\")|[^\""\n])*"/g),
Original comment by [email protected]
on 10 Apr 2008 at 10:37
from snippely.
By the way, is anyone maintaining snippely? It has the potential to be an
awesome
tool for devs of all kinds.
If someone is, here is the start of C# highlighter:
Brushes.CSharp = {
'comment': [Highlighter.RegExps.singleLineComment,
Highlighter.RegExps.multiLineComment],
'string': [Highlighter.RegExps.singleQuotedString,
Highlighter.RegExps.doubleQuotedString],
'integer': Highlighter.RegExps.integer,
'preprocessor': Highlighter.RegExps.preprocessor,
'special': (/\$\w+/g),
'keyword': 'abstract as base bool break byte case catch char checked class const ' +
'continue decimal default delegate do double else enum event explicit ' +
'extern false finally fixed float for foreach get goto if implicit in int ' +
'interface internal is lock long namespace new null object operator out ' +
'override params private protected public readonly ref return sbyte sealed set ' +
'short sizeof stackalloc static string struct switch this throw true try ' +
'typeof uint ulong unchecked unsafe ushort using virtual void while'
};
Original comment by [email protected]
on 10 Apr 2008 at 10:45
from snippely.
fixed in r132
Original comment by [email protected]
on 21 May 2008 at 11:01
- Changed state: Fixed
from snippely.
Related Issues (20)
- Need ability to change font
- Feature-request: Syntax-Highlighting for Delphi/(Free)Pascal
- Make snippets keyboard accessible
- Is it possible to add minimize to tray option and export to txt file
- Snippely PortableApps.com
- Add confirmation on remove of a code or a note
- Linebreaks for the description lost when saving
- Virus Alert when Installing (Malicious Software)
- constant 1.5-2.0% CPU usage
- How work with the source code?
- 用起来太卡了
- No Backup
- Snippeley won`t show after last update HOT 3
- Adobe Air Introspector (Error: general internal error) HOT 1
- Specify location of database HOT 2
- EncryptedLocalStore internal error HOT 2
- not really an issue but a request
- Tip中的指示箭头实现
- HTML syntax highlight
- Need «Add snippet» button or keystroke
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snippely.