Customize indent procedure...

Working on new editor enhancements?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eddy.

I want to customize indent procedure...
That is what I know :

Code: Select all

//*****************************************
// Set Tabs stops every 4 space chars
SPACE_WIDTH=10 //px
SIZE_TAB = 4 * (SPACE_WIDTH * 15) //twip
PARAFORMAT pf ;
	pf.cbSize = sizeof(PARAFORMAT);
	pf.dwMask = PFM_TABSTOPS ;
	pf.cTabCount = MAX_TAB_STOPS;
	// Set tab stops every 4 space chars
	for( int itab = 0 ; itab EM_SETPARAFORMAT 
EM_GETPARAFORMAT

Tab ASCII code = 9

I don't know how to get space char width...


------------------------------------------------------
[b]To be or not to be Free !!!!!!!!! :->[/b]