Scite Programmers

lua-users home
wiki

Set up Scite as an IDE for programming.

Call tips not working?

Define SciTE settings for C++, C, C#, Ch, Java, IDL, JavaScript, Flash (ActionScript? 2) files.

Java keywords and calltips can be gotten from here: http://www.scintilla.org/SciTEExtras.html

Java Programming (Linux)

Windows uses backslashes in path names. Change / to \ for that platform.

First, download the java files from the above link.

edit cpp.properties

scite $(Scite.Default.Home)/cpp.properties

add the following lines, if not already there:

import java160_kwd
api.*.java=$(SciteDefaultHome)/java160.api
calltip.java.word.characters=._$(word.chars.cxx)
calltip.java.parameters.start=(
calltip.java.parameters.start=)
calltip.java.parameters.separators=.

C, C++, PHP Programming

Same as above. Download the c.api, the cpp.api or the php.api

api.*.c=$(SciteDefaultHome)/c.api
api.*.php=$(SciteDefaultHome)/php.api
api.*.cpp=$(SciteDefaultHome)/cpp.api

If you want keyword highlighting in C remember there are 2 types of highlighting.

in cpp.properties, look for the line:

keywordclass.cpp=and and_eq asm auto bitand bitor bool break \
(These keywords will be highlighted in blue.)

keywords2.$(file.patterns.cpp)=
(These keywords will be highlighted in red.)

I added the keywords from stdio.h. Essentially it looks like this:

keywords2.$(file.patterns.cpp)=abort abs acos asctime asin assert atan atan2 atexit atof atoi atol \
bsearch \
calloc ceil clearerr clock cos cosh ctime \
difftime div \
exit exp \
fabs fclose feof ferror fflush fgetc fgetpos fgets floor fmod fopen fprintf fputc fputs fread free freopen frexp fscanf fseek fsetpos ftell fwrite \
getc getchar getenv gets gmtime \
isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit \
labs ldexp ldiv localtime log log10 \
malloc memchr memcmp memcpy memmove memset mktime modf \
perror pow printf putc putchar puts \
qsort \
raise rand realloc remove rename rewind \
scanf setbuf setvbuf sin sinh sprintf sqrt srand sscanf strcat strchr strcspn strcmp strcoll strcpy strerror strftime strlen strncat strncmp strncpy strpbrk strrchr strspn strstr strtod strtok strtol strtoul strxfrm system \
tan tanh time tmpfile tmpname tolower toupper \
ungetc \
va_arg va_end va_start vfprintf vprintf vsprintf

You can also store these keywords in a separate file.
I saved the above as c_kwd.properties and imported it by adding a line to cpp.properties:
import c_kwd

Enjoy having highlighted keywords, auto-completion and calltips.


RecentChanges · preferences
edit · history
Last edited November 15, 2012 5:50 am GMT (diff)