Notepad++ version: 5.6.4
Language: Ogre material
userDefineLang.xml
代码
<
NotepadPlus
>
< UserLang name ="Ogre Material" ext ="material" >
< Settings >
< Global caseIgnored ="no" />
< TreatAsSymbol comment ="no" commentLine ="yes" />
< Prefix words1 ="no" words2 ="no" words3 ="no" words4 ="no" />
Settings >
< KeywordLists >
< Keywords name ="Delimiters" > 000000 Keywords >
< Keywords name ="Folder+" > Keywords >
< Keywords name ="Folder-" > Keywords >
< Keywords name ="Operators" > Keywords >
< Keywords name ="Comment" > 1 2 0// Keywords >
< Keywords name ="Words1" > material technique pass texture_unit vertex_program_ref shadow_caster_vertex_program_ref fragment_program vertex_program fragment_program_ref geometry_program_ref geometry_program Keywords >
< Keywords name ="Words2" > lod_distances receive_shadows transparency_casts_shadows set_texture_alias scheme lod_index ambient diffuse specular emissive scene_blend depth_check depth_write depth_func depth_bias alpha_rejection cull_hardware cull_software lighting shading polygon_mode fog_override colour_write max_lights iteration point_size point_size_attenuation point_size_min point_size_max point_sprites texture_alias texture anim_texture cubic_texture tex_coord_set tex_address_mode tex_border_colour filtering max_anisotropy colour_op colour_op_ex colour_op_multipass_fallback alpha_op_ex env_map scroll scroll_anim rotate rotate_anim scale wave_xform transform lod_index source entry_point profiles syntax content_type illumination_stage target delegate attach Keywords >
< Keywords name ="Words3" > param_named param_named_auto param_indexed param_indexed_auto cg asm unified hlsl glsl Keywords >
< Keywords name ="Words4" > world_matrix inverse_world_matrix transpose_world_matrix inverse_transpose_world_matrix world_matrix_array_3x4 view_matrix inverse_view_matrix transpose_view_matrix inverse_transpose_view_matrix projection_matrix inverse_projection_matrix transpose_projection_matrix inverse_transpose_projection_matrix worldview_matrix inverse_worldview_matrix transpose_worldview_matrix inverse_transpose_worldview_matrix viewproj_matrix inverse_viewproj_matrix transpose_viewproj_matrix inverse_transpose_viewproj_matrix worldviewproj_matrix inverse_worldviewproj_matrix transpose_worldviewproj_matrix inverse_transpose_worldviewproj_matrix render_target_flipping light_diffuse_colour light_diffuse_colour light_specular_colour light_attenuation light_position light_direction light_position_object_space light_direction_object_space light_position_view_space light_direction_view_space light_power ambient_light_colour fog_colour fog_params camera_position camera_position_object_space time time_0_x costime_0_x sintime_0_x tantime_0_x time_0_x_packed time_0_1 costime_0_1 sintime_0_1 tantime_0_1 time_0_1_packed time_0_2pi costime_0_2pi sintime_0_2pi tantime_0_2pi time_0_2pi_packed frame_time fps viewport_width viewport_height inverse_viewport_width inverse_viewport_height viewport_size view_direction view_side_vector view_up_vector fov near_clip_distance far_clip_distance texture_viewproj_matrix pass_number pass_iteration_number animation_parametric custom optional vs_1_1 vs_2_0 vs_2_x vs_3_0 arbvp1 vp20 vp30 vp40 ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_x ps_3_0 ps_3_x arbfp1 fp20 fp30 fp40 Keywords >
KeywordLists >
< Styles >
< WordsStyle name ="DEFAULT" styleID ="11" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="FOLDEROPEN" styleID ="12" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="FOLDERCLOSE" styleID ="13" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="KEYWORD1" styleID ="5" fgColor ="FF0000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="KEYWORD2" styleID ="6" fgColor ="0000FF" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="KEYWORD3" styleID ="7" fgColor ="FF80C0" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="KEYWORD4" styleID ="8" fgColor ="0080FF" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="COMMENT" styleID ="1" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="COMMENT LINE" styleID ="2" fgColor ="008040" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="NUMBER" styleID ="4" fgColor ="8000FF" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="OPERATOR" styleID ="10" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="DELIMINER1" styleID ="14" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="DELIMINER2" styleID ="15" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="DELIMINER3" styleID ="16" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
Styles >
UserLang >
NotepadPlus >
< UserLang name ="Ogre Material" ext ="material" >
< Settings >
< Global caseIgnored ="no" />
< TreatAsSymbol comment ="no" commentLine ="yes" />
< Prefix words1 ="no" words2 ="no" words3 ="no" words4 ="no" />
Settings >
< KeywordLists >
< Keywords name ="Delimiters" > 000000 Keywords >
< Keywords name ="Folder+" > Keywords >
< Keywords name ="Folder-" > Keywords >
< Keywords name ="Operators" > Keywords >
< Keywords name ="Comment" > 1 2 0// Keywords >
< Keywords name ="Words1" > material technique pass texture_unit vertex_program_ref shadow_caster_vertex_program_ref fragment_program vertex_program fragment_program_ref geometry_program_ref geometry_program Keywords >
< Keywords name ="Words2" > lod_distances receive_shadows transparency_casts_shadows set_texture_alias scheme lod_index ambient diffuse specular emissive scene_blend depth_check depth_write depth_func depth_bias alpha_rejection cull_hardware cull_software lighting shading polygon_mode fog_override colour_write max_lights iteration point_size point_size_attenuation point_size_min point_size_max point_sprites texture_alias texture anim_texture cubic_texture tex_coord_set tex_address_mode tex_border_colour filtering max_anisotropy colour_op colour_op_ex colour_op_multipass_fallback alpha_op_ex env_map scroll scroll_anim rotate rotate_anim scale wave_xform transform lod_index source entry_point profiles syntax content_type illumination_stage target delegate attach Keywords >
< Keywords name ="Words3" > param_named param_named_auto param_indexed param_indexed_auto cg asm unified hlsl glsl Keywords >
< Keywords name ="Words4" > world_matrix inverse_world_matrix transpose_world_matrix inverse_transpose_world_matrix world_matrix_array_3x4 view_matrix inverse_view_matrix transpose_view_matrix inverse_transpose_view_matrix projection_matrix inverse_projection_matrix transpose_projection_matrix inverse_transpose_projection_matrix worldview_matrix inverse_worldview_matrix transpose_worldview_matrix inverse_transpose_worldview_matrix viewproj_matrix inverse_viewproj_matrix transpose_viewproj_matrix inverse_transpose_viewproj_matrix worldviewproj_matrix inverse_worldviewproj_matrix transpose_worldviewproj_matrix inverse_transpose_worldviewproj_matrix render_target_flipping light_diffuse_colour light_diffuse_colour light_specular_colour light_attenuation light_position light_direction light_position_object_space light_direction_object_space light_position_view_space light_direction_view_space light_power ambient_light_colour fog_colour fog_params camera_position camera_position_object_space time time_0_x costime_0_x sintime_0_x tantime_0_x time_0_x_packed time_0_1 costime_0_1 sintime_0_1 tantime_0_1 time_0_1_packed time_0_2pi costime_0_2pi sintime_0_2pi tantime_0_2pi time_0_2pi_packed frame_time fps viewport_width viewport_height inverse_viewport_width inverse_viewport_height viewport_size view_direction view_side_vector view_up_vector fov near_clip_distance far_clip_distance texture_viewproj_matrix pass_number pass_iteration_number animation_parametric custom optional vs_1_1 vs_2_0 vs_2_x vs_3_0 arbvp1 vp20 vp30 vp40 ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_x ps_3_0 ps_3_x arbfp1 fp20 fp30 fp40 Keywords >
KeywordLists >
< Styles >
< WordsStyle name ="DEFAULT" styleID ="11" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="FOLDEROPEN" styleID ="12" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="FOLDERCLOSE" styleID ="13" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="KEYWORD1" styleID ="5" fgColor ="FF0000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="KEYWORD2" styleID ="6" fgColor ="0000FF" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="KEYWORD3" styleID ="7" fgColor ="FF80C0" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="KEYWORD4" styleID ="8" fgColor ="0080FF" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="COMMENT" styleID ="1" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="COMMENT LINE" styleID ="2" fgColor ="008040" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="NUMBER" styleID ="4" fgColor ="8000FF" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="OPERATOR" styleID ="10" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="DELIMINER1" styleID ="14" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="DELIMINER2" styleID ="15" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
< WordsStyle name ="DELIMINER3" styleID ="16" fgColor ="000000" bgColor ="FFFFFF" fontName ="" fontStyle ="0" />
Styles >
UserLang >
NotepadPlus >
Reference:
Creating a User Defined Language in Notepad++
2010-06-12
http://www.ogre3d.org/wiki/index.php/Notepad%2B%2B_Highlighter