Hello,
I am trying to move to UltraEdit from jedit (it's slow), and I'm having trouble getting indentation to work in a way that is like the default in most other editors. I want my c code to look like this:
What do I need to do?
I am trying to move to UltraEdit from jedit (it's slow), and I'm having trouble getting indentation to work in a way that is like the default in most other editors. I want my c code to look like this:
Code: Select all
while(total_bytes < message_size)
{
if((received_bytes = recv(sockfd, message + total_bytes,
sizeof(char) * (message_size - total_bytes), 0))
== -1)
{
sprintf(errstr, "Could not recieve\n");
perror(errstr);
free(message);
exit(1);
}
else
{
if(received_bytes == 0)
{
// connection terminated ... exit
printf("Connection Lost\n");
exit(0);
}
total_bytes += received_bytes;
printf("Received So Far: %d\n", total_bytes);
}
}