[Greasemonkey] Any syntax tester/ indenter around for gm?
spamcan
spammbucket at yahoo.com
Wed Oct 11 18:35:48 PDT 2006
On Sun, 27 Aug 2006 02:23:57 -0700, Brendan J <verifex at gmail.com> wrote:
> Vikas,
>
> I don't think I've heard of a code checker that checks for mispelled
> commands. However, there is a program I use that is fairly handy when it
> comes to cleaning up code. It's called PSPad (www.pspad.com), it has a
> "Reformat HTML" option that works pretty well.
>
> -Brendan
>
> On 8/26/06, Vikas Pandey <vickyvirgo2k at gmail.com> wrote:
>>
>> OK. There is that shell and that compiler.
>>
>> I am using Crimson Editor for javascript/ gm scripts. It has syntax
>> highlighting, and bracket-matching, but that is almost all it has.
crimson (cedt) has a toggle to *mark* "words" that aren't in the dic or in
user's dic (a text file)
it has other useful things. a "project panel" (actually projects are
loadable xml-like files, you can hand-edit the sequence and nesting). or
can have directory view in same left panel
a folder search (the masks don't seem to work)
remembers cursor (actually beginning of line) locations of files open when
last shutdown (if that file had split view, cedt goes to last cursor line
in the lower split.)
append cut and copy. (i'm still hoping to see an append paste someday!
(-: )
"column mode" editing/selecting.
you can indent multiple lines if they are selected when you use tab key
10 macros (i use to insert html or css tags)
10 external functions (open in firefox or opera, etc)
the syntax formatting files are text (editable)
relatively good windows file association built in (apepars to be registry
key writes)
basic word count or similar.
can manaully choose a different syntax formatting (useful to check styles
in head of html file)
some bads:
dragging text is defective.
the open dialog is weak.
(like all text editors?) cedt takes awhile to line-wrap large files when
opening
macro recorder, but macro must be rerecorded if you make error.
can't control format of date insertion. (unless i ha'vent discovered where
that can be changed)
some "huhs"?
"evaluate line". i've tried this command experimentally. it responds with
a short error message. the help file and website are decent, so maybe this
command is described there..
find and replace requires quirky tactics.
a few ftp functions (i've never looked at these)
>> It doesn't have any option to arrange entire script in a readable format
>> by putting indents, etc. It can't even preprocess the error to check for
>> logical errors like mismatched bracket, undeclared var, wrongly spelled
>> command.
>>
>> Is there any such pre-processor for JS/GM that would highlight errors in
>> advance and prevent us from staring at the webpage when our script
>> doesn't show.
>>
>> Thanks.
>> --
>> Vicky
More information about the Greasemonkey
mailing list