camera
{
#local tt = 25; //let's you change the distance easily
location <-tt,tt,-tt>
//location<0,5,-50> //alternate location
look_at <0,-2,0> //best to select the approximate centre of the object
angle 30
}
light_source { <100, 100, -100> White}
light_source { <-100, 100, -100> White }
light_source { <-100, 100, 100> White }
light_source { <100, 100, 100> White }
//light_source { <-tt,tt,-tt> White }
//light_source { <-tt,tt,-tt> White }
//light_source { <-tt,tt,-tt> White }
background{Grey}
#end //of ifdef(__user_createthumbs)
#end
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Files with extension .inc is not well displayed correctly colors
othres editors good
Example
http://perso.numericable.fr/pboucheny/eagle3d/images/code002.gif
Example please download the following file
http://chromiteblue.com/wp/wp-content/gallery/eagle3d/jumpers/user_jumper.inc
// EAGLE 3D MACRO
#ifndef(__local_jumper_inc)
#declare __local_jumper_inc = true;
//#declare __user_createthumbs = true;
#ifdef(__user_createthumbs)
#declare inc_testmode=true;
#include "tools.inc"
#include "colors.inc"
#include "user_colors.inc"
#end
#declare jumper_bend_radius = 0.200;
#declare dim_mm_awg_16 = 1.290; //AWG-16
#declare dim_mm_awg_18 = 1.024; //AWG-18 (standard)
#declare dim_mm_awg_20 = 0.812; //AWG-20
#declare dim_mm_awg_22 = 0.644; //AWG-22
#declare dim_mm_awg_24 = 0.511; //AWG-24
#declare dim_mm_awg_26 = 0.405; //AWG-26
#macro USER_WIREJUMPER(l,d,r,lw,dw,op,w)
union{
object{
TOOLS_WIRE_LEADS(l,d,lw*2,dim_mm_awg_24,r,jumper_bend_radius,0,"H")
}
translate<0,dim_mm_awg_24/2+op,0>
}
#end
#macro USER_WIREJUMPER_05MM()
object{
USER_WIREJUMPER( 5.8, 2.2, 2.54*2, 20, 0.6, 0, 0.3 )
}
#end
#macro USER_WIREJUMPER_07MM()
object{
USER_WIREJUMPER( 5.8, 2.2, 2.54*3, 20, 0.6, 0, 0.3 )
}
#end
#macro USER_WIREJUMPER_10MM()
object{
USER_WIREJUMPER( 5.8, 2.2, 2.54*4, 20, 0.6, 0, 0.3 )
}
#end
#macro USER_WIREJUMPER_12MM()
object{
USER_WIREJUMPER( 5.8, 2.2, 2.54*5, 20, 0.6, 0, 0.3 )
}
#end
#macro USER_WIREJUMPER_15MM()
object{
USER_WIREJUMPER( 5.8, 2.2, 2.54*6, 20, 0.6, 0, 0.3 )
}
#end
/**********************************************************************
Create Thumbs
**********************************************************************/
#ifdef(__user_createthumbs)
#declare AnimationLength = 4;
#declare AnimationFrame = clock * AnimationLength;
#switch ( floor(AnimationFrame) )
#case (0)
USER_WIREJUMPER_05MM()
#break
#case (1)
USER_WIREJUMPER_07MM()
#break
#case (2)
USER_WIREJUMPER_10MM()
#break
#case (3)
USER_WIREJUMPER_12MM()
#break
#case (4)
USER_WIREJUMPER_15MM()
#break
#end //of switch
camera
{
#local tt = 25; //let's you change the distance easily
location <-tt,tt,-tt>
//location<0,5,-50> //alternate location
look_at <0,-2,0> //best to select the approximate centre of the object
angle 30
}
light_source { <100, 100, -100> White}
light_source { <-100, 100, -100> White }
light_source { <-100, 100, 100> White }
light_source { <100, 100, 100> White }
//light_source { <-tt,tt,-tt> White }
//light_source { <-tt,tt,-tt> White }
//light_source { <-tt,tt,-tt> White }
background{Grey}
#end //of ifdef(__user_createthumbs)
#end
I hope that the extension (*. inc) not be read by Pascal, if not for C
How is this done?
Problem with .inc is that it's used by multiple languages - including, but not limited to, assembly and pascal.
I believe NP++ uses assembly syntax coloring for .inc.
This language is C, if you rename the file to (*. c) all is well
Please for the next version of the editor to correct this problem.
(*. inc) is also used in the programming of microcontrollers
www.freescale.com