! Symbol Highlighting Patterns for NCL [NCAR COmmand Language] ! ! Prototype ! ! ------------------------------------------------------------------------------ ! ! Highlighting Patterns for NCL ! ! In NEdit Version 5.0.1 and beyond, load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! In version 5.0, without -import, you must edit your .nedit file by hand and ! add the contents of each resource below to the corresponding list in your ! .nedit file. Be sure to separate new entries with \n, and continue resource ! strings by escaping all newlines within a resource value with \ (backslash), ! leaving only the last line of the resource value not ending in \. ! ! ------------------------------------------------------------------------------ ! This is the original stuff Dennis had for strings, but it does not seem to ! work. ! String:\"\"\"\":\"\"\"\"::String::\n\ ! StringSyntax:"[$]":::StringSyntax::\n\ ! String:Black:Plain\n\ ! StringSyntax:Blue:Bold\n\ ! NCL gsn csm plot templates and special gsn functions (1st set) ! NCL contributed functions (2nd set) ! NCL shea_util functions (3rd set) nedit.highlightPatterns: \ NCL:1:0{\n\ Keyword:"<(begin|end|exit|do|end do|do while)>":::Keyword::\n\ Keyword:"<(if|else|then|end if|return|break|continue|defaultapp|noparent)>":::Keyword::\n\ Keyword:"<(function|procedure|local|external|load|record|stop record)>":::Keyword2::\n\ Keyword:"<(gsn_polyline|gsn_csm_xy|gsn_csm_map|gsn_csm_map_ce|gsn_csm_map_polar|gsn_csm_contour_map_ce|gsn_csm_contour_map_polar|gsn_csm_contour_map_overlay|gsn_add_polygon|gsn_add_polyline|gsn_add_polymarker|gsn_add_text|gsn_add_text_ndc)>":::Keyword3::\n\ Keyword:"<(gsn_legend_ndc|gsn_polygon|gsn_polygon_ndc|gsn_polyline|gsn_polyline_ndc|gsn_polymarker|gsn_polymarker_ndc|gsn_text_ndc|gsn_text|gsn_csm_xy|gsn_csm_hov|gsn_csm_lat_time|gsn_csm_time_lat|gsn_csm_pres_hgt|gsn_histogram|gsn_csm_streamline|gsn_csm_streamline_map_ce|gsn_csm_streamline_map_polar|gsn_csm_streamline_map|gsn_csm_streamline_contour_map_ce|gsn_csm_streameline_contour_map_polar|gsn_csm_streamline_contour_map|gsn_csm_pres_hgt_streamline)>":::Keyword3::\n\ Keyword:"<(gsn_csm_vector|gsn_csm_vector_map_ce|gsn_csm_vector_map_polar|gsn_csm_vector_map|gsn_csm_pres_hgt_vector|gsn_csm_vector_scalar_map_ce|gsn_csm_vector_scalar_map_polar|gsn_csm_vector_scalar_map|gsn_open_wks|gsn_panel|gsn_define_colormap|ngezlogo|nglogo|NhlNewColor|gsn_reverse_colormap|gsn_csm_y|gsn_csm_contour_map|gsn_csm_contour)>":::Keyword3::\n\ Keyword:"<(addfiles_GetVar|assignFillValue|calcMonAnom|changeCase|changeCaseChar|climMonLLT|climMonLLLT|clmMonTLL|clmMonTLLL|closest_val|copy_VarAtts|copy_VarCoords|copy_VarCoords_1|copy_VarCoords_2|copy_VarMeta|copyatt|cshstringtolist|decimalPlaces|epsZero|fbinseqSwap1|fbinseqSwap2|ftl2dble|get1Dindex|get1Dindex_Collapse|GetFillColor|getFillValue)>":::Keyword3::\n\ Keyword:"<(lonFlip|lonPivot|month_to_season|month_to_seaonN|month_to_season12|RGBtoCmap|rmInsufData|rmAnnCycle1D|rmMonAnncyc|short2flt|stdMon|NewCosWeight|SqrtCosWeight|transpose|uv2vrG_Wrap|zonalAve)>":::Keyword3::\n\ Keyword:"<(ZeroLineContour|ZeroNegDashLineContour|ZeroNegDAShLineContourOverlay|ZeroGoneNegDashLineContour|NegDashLineContour|SetZeroLineThickness|ColorNegDashZeroPosContour|ColorShadeLeGeContour|ShadeLtContour|ShadeGtContour|ShadeLtGtContour|ShadeGeLeContour|genCmapManualRes|genCmapMnMxCnInt|genCmapMnMxSpan|genCmapCnLvl|infoTimeStamp|msgValOutline|printVarInfo|specx_ci|specsy_ci|add90LatX|add90LatY|plot_xy2|drawNDCGrid)>":::Keyword3::\n\ Keyword:"<(addfile|addfiles|all|any|asciiread|asciiwrite|avg|cbinread|cbinwrite|chartofloat|chartointeger|chartostring|conform|craybinnumrec|craybinrecread|cz2ccsm|delete|dim_avg|dim_max|dim_min|dim_product|dim_sum|dim_variance|dim_variance_Wrap|dimsizes|doubletofloat|dpres_hybrid_ccm|eof_varimax|eofcor|eofcor_pcmsg|eofcor_pcmsg_Wrap|eofcor_ts|eofcov|eofcov_pcmsg|eofcov_ts|esacr|esacv|esccr|esccv|escorc|exp|f2fosh|f2foshv|f2fsh|f2fshv|f2gsh|f2gshv|fbindirread|finbindirwrite|fbinnumred|fbinread|fbinrecread|fbinrecwrite|fbinwrite|fileattdef|filedimdef|flevarattdef|filevardef|filevardimsizes|fo2fsh|fo2fshv|fspan|ftest|g2gsh|g2gshv|gc_latlon|getenv|getfilevaratts|getfilevardims|getfilevarnames|getvaratts)>":::Keyword3::\n\ Keyword:"<(ind|int2p|isatt|ismissing|isvar|ispan|linint1|linint1_Wraplinint2|linint2_points|linint2_Wrap|linint2_points_Wrap|local_min|loadscript|mask|max|min|natgrid|ndtooned|onedtond|overlay|paleo_outline|pop_remap|pres_hybrid_ccm|pres_sigma|print|printVarSummary|qsort|rand|rcm2points|rcm2grid|relhum|rtest|runave)>":::Keyword3::\n\ Keyword:"<(sigma2hybrid|sizeof|smth9|specx_anal|specxy_anal|sprintf|sprinti|sqrt|sqsort|stddev|sum|svdcov|svdcov_sv|svdstd|svdstd_sv|system|systemfunc|ttest|typeof|undef|uv2dvF|uv2dvG|uv2sfvpf|uv2sfvpg|uv2vr_cfd|uv2vrdvf|uv2vrdvg|uv2vrF|uv2vrf|uv2vrG|uv2vrg|variance|vinth2p|vinth2p_ecmwf|vr2uvf|vr2uvF|vr2uvg|vr2uvG|wavelet|wgt_areaave|wgt_arearmse|wgt_runave|wgt_volave|wgt_volave_ccm|wgt_volrmse|wgt_volrmse_ccm|zonal_mpsi)>":::Keyword3::\n\ Keyword:"<(ut_calendar|ut_inv_calendar|day_of_week|day_of_year|days_in_month|greg2jul|jul2greg|isleapyear|monthday|yyyymm_time|yyyymm_to_yyyyfrac|yyyymmdd_time|yyyymmdd_to_yyyyfrac|yyyymmddhh_to_yyyyfrac)>":::Keyword3::\n\ Keyword:"<(get_file_suffix|grib_stime2itime|wallClockElapseTime|linmsg|linmsg_Wrap|dim_pqsort)>":::Keyword3::\n\ Keyword:"<(stringtointeger|stringtocharacter|stringtochar|chartoint|chartostring)>":::Keyword3::\n\ Keyword:"<(byte2flt|flt2dble|short2flt|short2flt_hdf|dble2flt|int2dble|doubletoint|doubletointeger||grib_stime2itime)>":::Keyword3::\n\ Keyword:"<(floattointeger|floattoint|integertobyte|inttobyte|integertoshort|inttoshort)>":::Keyword3::\n\ Keyword:"<(latGau|latGauWgt|latGlobeF|latGlobeFo|lonGlobeF|lonGlobeFo)>":::Keyword3::\n\ Keyword:"<(abs|cos|asin|atan|atan2|cos|cosh|floor|gammainc|inverse_matrix|linrood_latwgt|log|log10)>":::Keyword3::\n\ Keyword:"<(get_ncl_version|tanh|taper|gaus|filevarattdef|inttochar|getvardims|zonal_mpsi|zonal_mpsi_Wrap|zonalAve)>":::Keyword3::\n\ Keyword:"<(getvalues|setvalues|end getvalues|end setvalues|PopLatLonV|PopLatLon)>":::Keyword3::\n\ Keyword:"<(product|reg_multlin|regCoef|regline|round|runave_Wrap|simpne|sinh|smth9_Wrap|solve_linsys)>":::Keyword3::\n\ Keyword:"<(local_min_1d|local_max_1d|omega_ccm|omega_ccm_driver|pack_values|setfileoption)>":::Keyword3::\n\ Keyword:"<(calcDayAnomTLL|cancor|clmDayTLL|generate_2d_array|gsn_csm_xy3|hyi2hyo|hyi2hyo_Wrap)>":::Keyword3::\n\ Keyword:"<(shsgc_R42|shsgc_R42_Wrap|smthClmDayTLL|yyyymm_time|yyyymm_to_yyyyfrac|z2geouv)>":::Keyword3::\n\ Keyword:"<(array_append_record|cdft_p|cdft_t|clmMon2clmDay|delete_VarAtts|dim_avg_wgt|and|dim_avg_wgt_Wrap|dim_sum_wgt|and|dim_sum_wgt_Wrap|erf|erfc|get_file_suffix|gsn_add_annotation|gsn_create_labelbar|gsn_create_legend|isbigendian|isMonotonic|loadscript|lspoly|niceLatLon2D|pres2hybrid|and|pres2hybrid_Wrap|rip_cape_2d|rip_cape_3d|stdatmus_p2tdz|stdatmus_z2tdp|strlen|table_attach_rows|wgt_vert_avg_beta|wrf_rh,|wrf_tk|yyyymmdd_to_yyyyfrac|yyyymmddhh_to_yyyyfrac)>":::Keyword3::\n\ Keyword:"<(ncargversion|num|cumsum|dim_cumsum|dim_cumsum_Wrap|dpres_plevel|dpres_plevel_Wrap|ft2db|fft2df|fft2db|gsn_contour_shade)>":::Keyword3::\n\ Keyword:"<(dim_avg_Wrap|dim_stddev_Wrap|dim_rmvmean_Wrap|dim_sum_Wrap|dim_variance_Wrap)>":::Keyword3::\n\ Keyword:"<(wgt_runave_Wrap|wgt_areaave_Wrap|wgt_arearmse_Wrap|dim_rmvmean_Wrap|landsea_mask)>":::Keyword3::\n\ Keyword:"<(gsn_table|ind_nearest_coord|indStrSubset|isStrSubset|mod|printMinMax|student_t|where)>":::Keyword3::\n\ Keyword:"<(wrf_contour|wrf_map|wrf_map_overlay|wrf_map_zoom|wrf_overlay|wrf_user_getvar|wrf_user_intrp3d|wrf_latlon_to_ij|wrf_user_list_times|wrf_vector)>":::Keyword3::\n\ Keyword:"<(new|eofunc_varimax_reorder|filwgts_lancos|filwgts_lanczos)>":::Keyword3::\n\ Keyword:"<(gc_angle|gc_clkwise|gc_dangle|gc_inout|gc_onarc|gc_pnt2gc|gc_qarea|gc_tarea)>":::Keyword3::\n\ Keyword:"<(getVarFillValue|poisson_grid_fill|draw|frame|numAsciiRow|numAsciiCol)>":::Keyword3::\n\ Keyword:"<(generate_unique_indices|hlsrgb|hsvrgb|rgbhls|rgbhvs|rgbyiq|yiqrgb|maximize_output|status_exit|vintp2p_ecmwf)>":::Keyword3::\n\ Keyword:"<(skewT_BackGround|skewT_PlotData|landsea_mask|readAsciiTable|readAsciiHead|write_matrix|taylor_metric_tables)>":::Keyword3::\n\ Keyword:"<(advectGradient|integrate_hybrid|integrate_plevel|PotTemp|StaticStability|PotVortHybrid|PotVortIsobaric)>":::Keyword_CAS::\n\ Keyword:"<(clmMonLLLT|clmMonLLT|clmMonTLLL|calcMonAnomLLLT|calcMonAnomLLT|calcMonAnomTLL|calcMonAnomTLLL)>":::Keyword3::\n\ Keyword:"<(nice_mnmxintvl)>":::Keyword3::\n\ Keyword:"<(tripleObjAnalysis1D|tripleObjAnalysis2D|tripleObjAnalysis)>":::Keyword_CAS::\n\ Comment:";":"$"::Comment::\n\ IO_Syntax:"[-\\>]":::IO_Syntax::\n\ MetaSyntax:"@|&|!":::MetaSyntax::\n\ ArraySyntax:"\\|":::ArraySyntax::\n\ ArraySyntax:":":::ArraySyntax::\n\ ArraySyntax:"[\\(//\\)]":::ArraySyntax::\n\ Continuation:"\\\\":::Continuation::\n\ String single:"'":"'":"\\n":String::\n\ String double:"""":"""":"\\n":String::\n\ Brackets:"[{}]":::SymbolSyntax::\n\ Numeric Const:"<[0-9]+(\\.[0-9]*)?([de][-+]?[0-9]*)?|\\.[0-9]+([de][-+]?[0-9]*)?>":::Numeric Const::D\n\ } nedit.languageModes: NCL:.ncl:::::: nedit.styles: Keyword:Black:Bold\n\ Keyword2:Purple:Bold\n\ Keyword3:Blue:Bold\n\ Keyword_CAS:Magenta:Bold\n\ MetaSyntax:Red:Bold\n\ SymbolSyntax:Black:Bold\n\ IO_Syntax:Brown:Bold\n\ Continuation:Blue:Bold\n\ Numeric Const:Black:Plain\n\ ArraySyntax:Black:Bold\n\ Comment:grey50:Italic