CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PCM Code Editor Recommendations
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
languer



Joined: 09 Jan 2004
Posts: 144
Location: USA

View user's profile Send private message

PCM Code Editor Recommendations
PostPosted: Sat Jan 17, 2004 1:05 pm     Reply with quote

Besides the CCS IDE and MPLAB, which other code editors are being used by members of this group (pros and cons)?

TIA,

languer.
Josh Davis
Guest







PostPosted: Sat Jan 17, 2004 1:21 pm     Reply with quote

By far the best I have found and currently use is edit plus.
Available from http://www.editplus.com

Its easy to configure with pcm and it is c aware to a certain degree,

If you decide to download it and try it out I can provide you with
the settings for using it with PCM.

Josh.
Testicky



Joined: 22 Nov 2003
Posts: 12
Location: South Africa / Taiwan

View user's profile Send private message Send e-mail Visit poster's website

Zeus can be configured as you like ..the way you like it.
PostPosted: Sat Jan 17, 2004 2:14 pm     Reply with quote

http://www.zeusedit.com/
_________________
Testicky
Steve H
Guest







PostPosted: Sat Jan 17, 2004 6:38 pm     Reply with quote

Here is another vote for edit plus - you can compile from within it, it has color highlighting and a great spelchecker (a must for me!)

:-)

Steve H.
Freddie



Joined: 06 Sep 2003
Posts: 49

View user's profile Send private message

Re: PCM Code Editor Recommendations
PostPosted: Sun Jan 18, 2004 3:48 pm     Reply with quote

I use the free code editor Sc1.exe. It is a code editor based off of Scintilla, a free code editing component. The main Scintilla page for allot of information and source code for the editing component is: http://www.scintilla.org

The free compiled code editor Sc1.exe can be found at:
http://www.scintilla.org/SciTEDownload.html

Go to this page and midway down under Windows Executables you wil see:
"A single file executable called Sc1 (260K) does not need any DLL or properties files as these are linked into the executable. You may still create properties files if you wish. Sc1.exe has been compressed with the UPX compressor so that it is a fast download. It does not need to be decompressed to be used."

This is the file you want. You can setup Sc1.exe to compile your PCM code with the press of a button. Using Sc1.exe, Create a file called "SciTEGlobal.properties" and save it in the directory along with the Sci1 editor. Copy the text into the file "SciTEGlobal.properties" and resave.

Pay particular attention to the line "cc=ccsc +FM +ES +DC +LN +T -A +P +M +Z +Y9 +STDOUT". This the line the calls the CCS compiler when you select TOOLS | COMPILE. You can add/delete other compiler options per the CCS documentation. Also, if you select LANGUAGE | C/C++, the editor will format most standard C for you.

Hope this helps someone. I really like Sc1 and best of all... it's free! I use it when I'm not using MPLAB.



# Place in the directory with SC1.exe
# Globals

buffers=10

tabsize=4
indent.size=4
use.tabs=0
indent.automatic=1
indent.opening=0
indent.closing=0

caret.period=500
position.left=1
position.top=1
position.width=640
position.height=480
are.you.sure=1
line.numbers=4
statusbar.visible=1
toolbar.visible=1
tabbar.visible=1
buffered.draw=1
selection.back=#E0E0E8
split.vertical=0
use.palette=0
margin.width=16
clear.before.execute=0
braces.check=1
braces.sloppy=1
edge.column=200
edge.mode=0
edge.colour=#C0DCC0
default.file.ext=.cpp
view.whitespace=0
view.indentation.whitespace=1
view.indentation.guides=1
highlight.indentation.guides=1
fold=1
fold.flags=16
fold.use.plus=1

chars.alpha=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
chars.numeric=0123456789
chars.accented=�������������������������������������������������������������������

source.files=*.py;*.c;*.cc;*.cpp;*.cxx;*.h;*.hh;*.hxx;*.hpp;*.idl;*.rc;*.java;\
*.js;*.vb;*.vbs;makefile;makefile_vc;makefile_bor;*.lua;*.html;*.properties;*.pas

# The open.filter setting os only used on Windows where the file selector has a menu of filters to apply
# to the types of files seen when opening.
open.filter=\
All Source|$(source.files)|\
All Files (*.*)|*.*|\
$(filter.python)\
$(filter.cpp)\
$(filter.java)\
$(filter.web)\
$(filter.js)\
$(filter.vb)\
$(filter.properties)\
$(filter.text)\
$(filter.idl)\
$(filter.lua)\
$(filter.perl)\
$(filter.php)\
$(filter.sql)\
$(filter.pas)

# Japanese
#code.page=932
# Unicode
#code.page=65001
code.page=0

# Give symbolic names to the set of fonts used in the standard styles.
font.base=font:Courier New,size:10
font.small=font:Courier New,size:8
font.comment=font:Comic Sans MS,size:10
font.text=font:Courier New,size:36
font.monospace=font:Courier New Bold,size:10
font.vbs=font:Lucida Sans Unicode,size:10
font.js=$(font.comment)

# Global default styles for all languages
# Default
style.*.32=$(font.base)
# Line number
style.*.33=back:#C0C0C0,$(font.base)
# Brace highlight
style.*.34=fore:#0000FF,bold
# Brace incomplete highlight
style.*.35=fore:#FF0000,bold
# Control characters
style.*.36=
# Indentation guides
style.*.37=fore:#C0C0C0,back:#FFFFFF

cc=ccsc +FM +ES +DC +LN +T -A +P +M +Z +Y9 +STDOUT $(FileNameExt)

command.compile.*.c=$(cc)
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Sun Jan 18, 2004 4:55 pm     Reply with quote

Textpad is also an excellent editor with syntax highlighter and checker.
http://www.textpad.com
Pete Smith



Joined: 17 Sep 2003
Posts: 55
Location: Chester, UK

View user's profile Send private message Visit poster's website MSN Messenger ICQ Number

Re: PCM Code Editor Recommendations
PostPosted: Mon Jan 19, 2004 4:00 am     Reply with quote

languer wrote:
Besides the CCS IDE and MPLAB, which other code editors are being used by members of this group (pros and cons)?

TIA,

languer.


Ultraedit all the way!

http://www.ultraedit.com/

I can compile with one keystroke, and then program a device with another.

It's C aware, and does syntax highlighting, where different C terms are coloured diferently (text, functions, preprocessor etc).

When using PCM, you can divert the compile results in a window, and if there are any errors, you can then click on them, and it takes you there.

Been using it for years, and am very happy with it.

Pete.
languer



Joined: 09 Jan 2004
Posts: 144
Location: USA

View user's profile Send private message

PostPosted: Tue Jan 20, 2004 2:25 pm     Reply with quote

To ALL who replied,

My special thanks for your inputs. I can say that as of today I've tried the following editors; ConTEXT and EditPlus2. Of the two EditPlus is much better (imho), the autocompletion feature is very cool. I modified the highliters with the aid of some settings posted by P Willard for ConTEXT.

My settings are as follow, but I can't jump directly to the error line (I would not mind some help with this):
$(FileName) +FM +ES +DS +T +A +LY +Y9 +P5 +STDOUT

The +A directive does not seem to generate a .sta file (should it under PCM?).

I have tried Ultraedit before (when I coded Java) and it was cool, but it took quite some time to master (may give it another go though).

Anyway, any other suggestions are welcomed and any tips on EditPlus are welcomed as well.

Code:

#TITLE=CCS-PICC PCM
; CCS PICC syntax file written by LR.
; Modified from ConTEXT highliter file from Pete Willard.

#DELIMITER=,(){}[]-+*%/="'~!&|<>?:;.#
#QUOTATION1='
#QUOTATION2="
#CONTINUE_QUOTE=n
#LINECOMMENT=//
#COMMENTON=/*
#COMMENTOFF=*/
#ESCAPE=\
#CASE=n
#PREFIX1=#
#PREFIX2=
#PREFIX3=
#PREFIX4=
#PREFIX5=
#SPECIAL_STX=

#KEYWORD=Preprocessor
__DEVICE__
__DATE__
__PCB__
__PCM__
__PCH__
__device__
__date__
__pcb__
__pcm__
__pch__
^#

#KEYWORD=Data Definitions
auto
double
int
struct
long
enum
register
typedef
char
extern
union
const
float
short
unsigned
signed
void
volatile
bit
byte

#KEYWORD=C Statements
break
else
switch
case
return
continue
for
default
goto
sizeof
do
if
while

#KEYWORD=Built-in Functions
// Standard C functions
abs
acos
asin
atan
ceil
cos
exp
floor
labs
log
log10
pow
sin
sqrt
tan
atoi
atol
tolower
toupper
isalnum
isalpha
isamoung
isdigit
islower
isspace
isupper
isxdigit
strlen
strcpy
strncpy
strcmp
strncmp
strcat
strstr
strchr
strrchr
strtok
strspn
strcspn
strpbrk
strlwr
// memory
memset
memcpy
// RS232 I/O
getc
putc
gets
puts
printf
kbhit
set_uart_speed
// i2c
i2c_start
i2c_stop
i2c_read
i2c_write
i2c_poll
// Discrete I/O
output_low
output_high
output_float
output_bit
output_a
output_b
output_c
output_d
output_e
output_f
output_g
output_h
input
input_a
input_b
input_c
input_d
input_e
input_f
inout_g
input_h
port_b_pullups
set_tris_a
set_tris_b
set_tris_c
set_tris_d
set_tris_e
set_tris_f
set_tris_g
set_tris_h
// SPI
setup_spi
spi_read
spi_write
spi_data_is_in
// Parallel slave I/O
setup_psp
psp_input_full
psp_output_full
psp_overflow
// delay
delay_us
delay_ms
delay_cycles
// processor controls
sleep
reset_cpu
restart_cause
disable_interrupts
enable_interrupts
exit_int_edge
read_blank
write_blank
// bit manipulation
shift_right
shift_left
rotate_right
rotate_left
bit_clear
bit_set
bit_test swap
// pwm
setup_ccp
set_pwm_1_duty
set_pwm_2_duty
// timers
setup_timer
set_timer
get_timer
setup_counters
setup_wdt
restart_wdt
// a/d conversion
setup_adc_ports
setup_adc
set_adc_channel
read_adc
// Analog comparator
setup_comparator
// EEPROM
read_eeprom
write_eeprom
read_program_eeprom
write_program_eeprom
read_calibration
// Voltage
setup_vref
// Assembler
andlw
call
clrwdt
goto
iorlw
movlw
option
retlw
sleep
tris
xorlw
addwf
andwf
clrf
clrw
comf
decf
decfsz
incf
incfsz
iorwf
movf
movwf
nop
rlf
rrf
subwf
swapf
xorwf
bcf
bsf
btfsc
btfss
addlw
movlw
retfie
return
sublw
tris
xorlw
addcf
adddcf
b
bc
bdc
bnc
bndc
bnz
bz
clrc
clrdc
clrz
lcall
lgoto
movfw
negf
setc
setdc
setz
skpc
skpdc
skpnc
skpnz
skpz
subcf
subdcf
tstf

#KEYWORD=Registers
port_a
port_b
port_c
port_d
port_e
port_f
port_g
port_h
porta
portb
portc
portd
porte
portf
portg
porth
trisa
trisb
trisc
trisd
trise
trisf
trisg
trish
tmr0
pcl
status
fsr
pclath
intcon
pie1
pie2
pir1
pir2
tmr1l
tmr1h
t1con
tmr2
t2con
sspbuf
sspcon
ccpr1l
ccpr1h
ccp1con
rcsta
txreg
rcreg
ccpr2l
ccpr2h
ccp2con
adresh
adresl
adcon0
adcon1
option_reg
pcon
sspcon2
pr2
sspadd
sspstat
txsta
spbrg
eedata
eeadr
eedath
eeadrh
eecon1
eecon2
#


languer.
dvsoft



Joined: 28 Nov 2003
Posts: 46

View user's profile Send private message

PostPosted: Wed Jan 21, 2004 5:55 am     Reply with quote

bonjour,

My editor

http://syn.sourceforge.net/

free with source and easy to use with CCS compiler
Guest








Re: PCM Code Editor Recommendations
PostPosted: Sat Nov 05, 2005 10:49 am     Reply with quote

Pete Smith wrote:
languer wrote:
Besides the CCS IDE and MPLAB, which other code editors are being used by members of this group (pros and cons)?

TIA,

languer.


Ultraedit all the way!

http://www.ultraedit.com/

I can compile with one keystroke, and then program a device with another.

It's C aware, and does syntax highlighting, where different C terms are coloured diferently (text, functions, preprocessor etc).

When using PCM, you can divert the compile results in a window, and if there are any errors, you can then click on them, and it takes you there.

Been using it for years, and am very happy with it.

Pete.
MikeValencia



Joined: 04 Aug 2004
Posts: 238
Location: Chicago

View user's profile Send private message Send e-mail Yahoo Messenger

PostPosted: Sat Nov 05, 2005 10:52 am     Reply with quote

VI
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Sat Nov 05, 2005 12:52 pm     Reply with quote

In Windows I like Ultraedit and Ultrastudio.

In Linux I like KDevelop.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Nov 07, 2005 9:16 am     Reply with quote

Thats funny. I also use Utraedit.
I can compile from inside the editor.((I'll give the format if interested))

AND
I can run a thread to download the firmware into the PIC.((with icd.exe))
C#R#



Joined: 28 May 2005
Posts: 5

View user's profile Send private message

PostPosted: Mon Feb 06, 2006 4:43 am     Reply with quote

hehehe ....
I use a dev-c++

Why ?

Well, code highlight (same to all)
code compeltition
project manager
code browse
FREE
you can download with or without mingw compiler (and learn to make code for windows / linux)
and more....

I tried eclipse and codeblocks, but I think that dev-c++ is the best. Wink
Andre Jr. Richard



Joined: 23 Sep 2003
Posts: 6

View user's profile Send private message

PostPosted: Wed Mar 07, 2007 7:51 pm     Reply with quote

C#R# said:

"Post� le: Lun F�v 06, 2006 5:43 am Sujet du message:

I tried eclipse and codeblocks, but I think that dev-c++ is the best. "

how did you do that ? any example of make file link with dec-c++ or eclipse?

Thanks

AJR

P.S. I'm a newbe with ccs link with another editor...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group