Подсветка синтаксиса QlikView в Xenforo

Статус
В этой теме нельзя размещать новые ответы.

uinx

Проверенные
Сообщения
19
Реакции
20
Баллы
1,700
Здравствуйте друзья,
Может быть среди присутствующих есть разработчики QlikView и уже задавались подобным вопросом.
Собственно, хотелось бы видеть плагин для Xenforo 1.5.x который позволял бы подсвечивать синтаксис кода QlikView в сообщениях форума.
Сама реализация подсветки уже реализована тут :
Необходима адаптация этого дела для форума. Может кто-то это сделать ?
з.ы. Могу подарить 500 рублей.
з.з.ы. Если не том разделе создал тему - плиз не пинайте.

Тааакс... вопрос снимаю, сам сделал :)
Использовал плагин: (CSI/XF/BBCODE) Подсветка синтаксиса (highlight.js)
И кое какие действия вручную произвел.
В итоге получил файл который залил на сервер вместо стандартного который используется в плагине.
!function(e){"undefined"!=typeof exports?e(exports):(window.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return window.hljs}))}(function(e){function t(e){return e.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function n(e){return e.nodeName.toLowerCase()}function r(e,t){var n=e&&e.exec(t);return n&&0==n.index}function a(e){var t=(e.className+" "+(e.parentNode?e.parentNode.className:"")).split(/\s+/);return t=t.map(function(e){return e.replace(/^lang(uage)?-/,"")}),t.filter(function(e){return T(e)||/no(-?)highlight|plain|text/.test(e)})[0]}function i(e,t){var n={};for(var r in e)n[r]=e[r];if(t)for(var r in t)n[r]=t[r];return n}function o(e){var t=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(t.push({event:"start",offset:a,node:i}),a=r(i,a),n(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:a,node:i}));return a}(e,0),t}function s(e,r,a){function i(){return e.length&&r.length?e[0].offset!=r[0].offset?e[0].offset<r[0].offset?e:r:"start"==r[0].event?e:r:e.length?e:r}function o(e){function r(e){return" "+e.nodeName+'="'+t(e.value)+'"'}u+="<"+n(e)+Array.prototype.map.call(e.attributes,r).join("")+">"}function s(e){u+="</"+n(e)+">"}function l(e){("start"==e.event?o:s)(e.node)}for(var c=0,u="",d=[];e.length||r.length;){var m=i();if(u+=t(a.substr(c,m[0].offset-c)),c=m[0].offset,m==e){d.reverse().forEach(s);do l(m.splice(0,1)[0]),m=i();while(m==e&&m.length&&m[0].offset==c);d.reverse().forEach(o)}else"start"==m[0].event?d.push(m[0].node):d.pop(),l(m.splice(0,1)[0])}return u+t(a.substr(c))}function l(e){function t(e){return e&&e.source||e}function n(n,r){return RegExp(t(n),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,o){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var s={},l=function(t,n){e.cI&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof a.k?l("keyword",a.k):Object.keys(a.k).forEach(function(e){l(e,a.k[e])}),a.k=s}a.lR=n(a.l||/\b\w+\b/,!0),o&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=n(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=n(a.e)),a.tE=t(a.e)||"",a.eW&&o.tE&&(a.tE+=(a.e?"|":"")+o.tE)),a.i&&(a.iR=n(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]);var c=[];a.c.forEach(function(e){e.v?e.v.forEach(function(t){c.push(i(e,t))}):c.push("self"==e?a:e)}),a.c=c,a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,o);var u=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(t).filter(Boolean);a.t=u.length?n(u.join("|"),!0):{exec:function(){return null}}}}r(e)}function c(e,n,a,i){function o(e,t){for(var n=0;n<t.c.length;n++)if(r(t.c[n].bR,e))return t.c[n]}function s(e,t){return r(e.eR,t)?e:e.eW?s(e.parent,t):void 0}function d(e,t){return!a&&r(t.iR,e)}function m(e,t){var n=w.cI?t[0].toLowerCase():t[0];return e.k.hasOwnProperty(n)&&e.k[n]}function g(e,t,n,r){var a=r?"":N.classPrefix,i='<span class="'+a,o=n?"":"</span>";return i+=e+'">',i+t+o}function p(){if(!C.k)return t(S);var e="",n=0;C.lR.lastIndex=0;for(var r=C.lR.exec(S);r;){e+=t(S.substr(n,r.index-n));var a=m(C,r);a?(k+=a[1],e+=g(a[0],t(r[0]))):e+=t(r[0]),n=C.lR.lastIndex,r=C.lR.exec(S)}return e+t(S.substr(n))}function f(){if(C.sL&&!v[C.sL])return t(S);var e=C.sL?c(C.sL,S,!0,y[C.sL]):u(S);return C.r>0&&(k+=e.r),"continuous"==C.subLanguageMode&&(y[C.sL]=e.top),g(e.language,e.value,!1,!0)}function h(){return void 0!==C.sL?f():p()}function _(e,n){var r=e.cN?g(e.cN,"",!0):"";e.rB?(M+=r,S=""):e.eB?(M+=t(n)+r,S=""):(M+=r,S=n),C=Object.create(e,{parent:{value:C}})}function b(e,n){if(S+=e,void 0===n)return M+=h(),0;var r=o(n,C);if(r)return M+=h(),_(r,n),r.rB?0:n.length;var a=s(C,n);if(a){var i=C;i.rE||i.eE||(S+=n),M+=h();do C.cN&&(M+="</span>"),k+=C.r,C=C.parent;while(C!=a.parent);return i.eE&&(M+=t(n)),S="",a.starts&&_(a.starts,""),i.rE?0:n.length}if(d(n,C))throw new Error('Illegal lexeme "'+n+'" for mode "'+(C.cN||"<unnamed>")+'"');return S+=n,n.length||1}var w=T(e);if(!w)throw new Error('Unknown language: "'+e+'"');l(w);for(var C=i||w,y={},M="",R=C;R!=w;R=R.parent)R.cN&&(M=g(R.cN,"",!0)+M);var S="",k=0;try{for(var I,x,E=0;;){if(C.t.lastIndex=E,I=C.t.exec(n),!I)break;x=b(n.substr(E,I.index-E),I[0]),E=I.index+x}b(n.substr(E));for(var R=C;R.parent;R=R.parent)R.cN&&(M+="</span>");return{r:k,value:M,language:e,top:C}}catch(L){if(-1!=L.message.indexOf("Illegal"))return{r:0,value:t(n)};throw L}}function u(e,n){n=n||N.languages||Object.keys(v);var r={r:0,value:t(e)},a=r;return n.forEach(function(t){if(T(t)){var n=c(t,e,!1);n.language=t,n.r>a.r&&(a=n),n.r>r.r&&(a=r,r=n)}}),a.language&&(r.second_best=a),r}function d(e){return N.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,t){return t.replace(/\t/g,N.tabReplace)})),N.useBR&&(e=e.replace(/\n/g,"<br>")),e}function m(e,t,n){var r=t?w[t]:n,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),r&&a.push(r),a.join(" ").trim()}function g(e){var t=a(e);if(!/no(-?)highlight|plain|text/.test(t)){var n;N.useBR?(n=document.createElementNS(" ","div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):n=e;var r=n.textContent,i=t?c(t,r,!0):u(r),l=o(n);if(l.length){var g=document.createElementNS(" ","div");g.innerHTML=i.value,i.value=s(l,o(g),r)}i.value=d(i.value),e.innerHTML=i.value,e.className=m(e.className,t,i.language),e.result={language:i.language,re:i.r},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.r})}}function p(e){N=i(N,e)}function f(){if(!f.called){f.called=!0;var e=document.querySelectorAll("pre code");Array.prototype.forEach.call(e,g)}}function h(){addEventListener("DOMContentLoaded",f,!1),addEventListener("load",f,!1)}function _(t,n){var r=v[t]=n(e);r.aliases&&r.aliases.forEach(function(e){w[e]=t})}function b(){return Object.keys(v)}function T(e){return v[e]||v[w[e]]}var N={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},v={},w={};return e.highlight=c,e.highlightAuto=u,e.fixMarkup=d,e.highlightBlock=g,e.configure=p,e.initHighlighting=f,e.initHighlightingOnLoad=h,e.registerLanguage=_,e.listLanguages=b,e.getLanguage=T,e.inherit=i,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="\\b(0[xX][a-fA-F0-9]+|(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/},e.CLCM={cN:"comment",b:"//",e:"$",c:[e.PWM]},e.CBCM={cN:"comment",b:"/\\*",e:"\\*/",c:[e.PWM]},e.HCM={cN:"comment",b:"#",e:"$",c:[e.PWM]},e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e}),hljs.registerLanguage("javascript",function(e){return{aliases:["js"],k:{keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document"},c:[{cN:"pi",r:10,v:[{b:/^\s*('|")use strict('|")/},{b:/^\s*('|")use asm('|")/}]},e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/</,e:/>;/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+e.IR,r:0}]}}),hljs.registerLanguage("qlikview-expression",function(e){var t={function_keyword:"All Total Distinct Nodistinct",built_in:"Above acos AddMonths AddYears After Age Aggr Alt ApplyCodepage ApplyMap ARGB asin atan atan2 Author Avg Before Below BitCount Black BlackAndSchole Blue Bottom Brown Capitalize Ceil Chi2Test_chi2 Chi2Test_df Chi2Test_p CHIDIST CHIINV Chr Class ClientPlatform Color ColorMapHue ColorMapJet ColorMix1 ColorMix2 Column ColumnNo Combin ComputerName Concat ConvertToLocalTime Correl cos cosh Count Cyan DarkGray Day DayEnd DaylightSaving DayName DayNumberOfQuarter DayNumberOfYear DayStart Dimensionality Div DocumentName DocumentPath DocumentTitle Dual e Even exp fabs Fact False FDIST FieldIndex FieldValue FieldValueCount FindOneOf FINV First FirstSortedValue FirstWorkDate Floor fmod Frac Fractile FV GetActiveSheetId GetAlternativeCount GetCurrentField GetCurrentSelections GetExcludedCount GetExtendedProperty GetFieldSelections GetNotSelectedCount GetObjectField GetPossibleCount GetRegistryString GetSelectedCount GMT Green Hash128 Hash160 Hash256 Hour HRank HSL If InDay InDayToTime Index Info InLunarWeek InLunarWeekToDate InMonth InMonths InMonthsToDate InMonthToDate InputAvg InputSum InQuarter InQuarterToDate InWeek InWeekToDate InYear InYearToDate IRR IsNull IsNum IsText KeepChar Kurtosis Last LastWorkDate Left Len LightBlue LightCyan LightGray LightGreen LightMagenta LightRed LINEST_B LINEST_DF LINEST_F LINEST_M LINEST_R2 LINEST_SEB LINEST_SEM LINEST_SEY LINEST_SSREG LINEST_SSRESID LocalTime log log10 Lower LTrim LunarWeekEnd LunarWeekName LunarWeekStart Magenta MakeDate MakeTime MakeWeekDate MapSubString Match Max MaxString Median Mid Min MinString Minute MissingCount MixMatch Mod Mode Month MonthEnd MonthName MonthsEnd MonthsName MonthsStart MonthStart NATIVE NetWorkDays NoOfColumns NoOfReports NoOfRows NORMDIST NORMINV Now nPer NPV Null NullCount NumAvg NumCount NumericCount NumMax NumMin NumSum Odd Only Ord OSUser Permut Pi Pick Pmt pow PurgeChar PV QlikTechBlue QlikTechGray QlikViewVersion QuarterEnd QuarterName QuarterStart QVUser Rand RangeAvg RangeCorrel RangeCount RangeFractile RangeIRR RangeKurtosis RangeMax RangeMaxString RangeMin RangeMinString RangeMissingCount RangeMode RangeNPV RangeNullCount RangeNumericCount RangeOnly RangeSkew RangeStdev RangeSum RangeTextCount RangeXIRR RangeXNPV Rank Rate Red ReloadTime Repeat Replace ReportComment ReportId ReportName ReportNumber RGB Right Round RowNo RTrim Second SecondaryDimensionality SetDateYear SetDateYearMonth Sign sin sinh Skew sqr sqrt StateName Stdev Sterr STEYX SubField SubStringCount Sum SysColor tan tanh TDIST Text TextBetween TextCount TimeZone TINV Today Top Trim True TTest1_conf TTest1_df TTest1_dif TTest1_lower TTest1_sig TTest1_sterr TTest1_t TTest1_upper TTest1w_conf TTest1w_df TTest1w_dif TTest1w_lower TTest1w_sig TTest1w_sterr TTest1w_t TTest1w_upper TTest_conf TTest_df TTest_dif TTest_lower TTest_sig TTest_sterr TTest_t TTest_upper TTestw_conf TTestw_df TTestw_dif TTestw_lower TTestw_sig TTestw_sterr TTestw_t TTestw_upper Upper UTC ValueList ValueLoop VRank Week WeekDay WeekEnd WeekName WeekStart WeekYear White WildMatch WildMatch5 XIRR XNPV Year Year2Date YearEnd YearName YearStart YearToDate Yellow ZTest_conf ZTest_dif ZTest_lower ZTest_sig ZTest_sterr ZTest_upper ZTest_z ZTestw_conf ZTestw_dif ZTestw_lower ZTestw_sig ZTestw_sterr ZTestw_upper ZTestw_z"},n={cN:"built_in",b:"\\b(date|interval|money|num|time|timestamp)\\b#?\\s?",i:"\\n"},r={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE,{b:"''"}],r:0},a={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE,{b:'""'}],r:0},i={cN:"variable",b:"\\$\\(",e:"\\)",i:"\\n",r:10},o={cN:"field",b:"\\[",e:"\\]",r:0};return{aliases:["exp","qve","qlikview-exp","qv-exp"],cI:!0,k:t,c:[e.CLCM,e.CBCM,e.QSM,n,r,a,i,i,{cN:"total-modifier",b:"<",e:">",c:[e.CLCM,e.CBCM,o,{cN:"field",b:"\\b[a-zA-Z_][a-zA-Z0-9_-]*\\b",i:"\ns"}],r:10},{cN:"set-analysis",b:"\\{",e:"\\}",c:[e.CLCM,e.CBCM,{b:"\\{",e:"\\}",c:[e.CLCM,e.CBCM,{cN:"set-analysis-quotes",b:'"',e:'"',i:"\ns"}]},{cN:"field",b:"\\b[a-zA-Z_][a-zA-Z0-9_-]*\\b",i:"\ns"}]},o,{cN:"field",k:t,b:"\\b[a-zA-Z_][a-zA-Z0-9_-]*\\b",i:"\ns"}]}}),hljs.registerLanguage("qlikview-script",function(e){var t={keyword:"Add Alias And As Autogenerate|10 Binary Buffer Bundle By Call Case Comment Concatenate Connect Crosstable Default Directory Disconnect Distinct Do Drop Each Else Elseif End Endif Endsub Endswitch Execute Exit Field Fields First For Force From From_Field Generic Group Hierarchy|10 HierarchyBelongsTo|10 if Image_size In Info Inline Inner Inputfield|10 Intervalmatch|10 Into Join Keep Left Let Load Loop Loosen Map Mapping Next Noconcatenate|10 Not NullAsNull NullAsValue Or Outer Qualify Rename Replace Resident Right Sample Script Section Select Semantic Set Sleep SQL SQLColumns SQLTables SQLTypes Star Step Store Sub Switch Table Tables Tag Then To Trace Unless Unmap Unqualify Untag Until Using When Where While With",built_in:"Acos Addmonths Addyears Age Alt Applycodepage Applymap Argb Asin Atan Atan2 Attribute Author Autonumber Autonumberhash128 Autonumberhash256 Avg Bitcount Black Blackandschole Blue Brown Capitalize Ceil Chi2test_chi2 Chi2test_df Chi2test_p Chidist Chiinv Chr Class Clientplatform Color Colormaphue Colormapjet Colormix1 Colormix2 Combin Computername Concat Connectstring Converttolocaltime Correl Cos Cosh Count Cyan Darkgray Day Dayend Daylightsaving Dayname Daynumberofquarter Daynumberofyear Daystart Div DocumentName DocumentPath DocumentTitle Dual E Evaluate Even Exists Exp Fabs Fact False Fdist FieldIndex FieldName FieldNumber FieldValue FieldValueCount FileBaseName FileDir FileExtension FileList FileName FilePath FileSize FileTime FindOneOf Finv FirstSortedValue FirstValue FirstWorkDate Floor Fmod Frac Fractile Fv GetExtendedProperty GetFolderPath GetObjectField GetRegistryString GMT Green Hash128 Hash160 Hash256 Hour HSL InDay InDayToTime Index InLunarWeek InLunarWeekToDate InMonth InMonths InMonthsToDate InMonthToDate Input InputAvg InputSum InQuarter InQuarterToDate Interval Interval# InWeek InWeekToDate InYear InYearToDate IRR IsNull IsNum IsPartialReload IsText IterNo KeepChar Kurtosis LastValue LastWorkDate Len LightBlue LightCyan LightGray LightGreen LightMagenta LightRed LINEST_B LINEST_DF LINEST_F LINEST_M LINEST_R2 LINEST_SEB LINEST_SEM LINEST_SEY LINEST_SSREG LINEST_SSRESID LocalTime log log10 Lookup Lower LTrim LunarWeekEnd LunarWeekName LunarWeekStart Magenta MakeDate MakeTime MakeWeekDate MapSubString Match Max MaxString Median Mid Min MinString Minute MissingCount MixMatch Mod Mode Money Money# Month MonthEnd MonthName MonthsEnd MonthsName MonthsStart MonthStart MsgBox NetWorkDays NoOfFields NoOfReports NoOfRows NoOfTables NORMDIST NORMINV Now nPer NPV Null NullCount Num Num# NumAvg NumCount NumericCount NumMax NumMin NumSum Odd Only Ord OSUser Peek Permut Pi Pick Pmt pow Previous PurgeChar PV QlikTechBlue QlikTechGray QlikViewVersion QuarterEnd QuarterName QuarterStart QvdCreateTime QvdFieldName QvdNoOfFields QvdNoOfRecords QvdTableName QVUser Rand RangeAvg RangeCorrel RangeCount RangeFractile RangeIRR RangeKurtosis RangeMax RangeMaxString RangeMin RangeMinString RangeMissingCount RangeMode RangeNPV RangeNullCount RangeNumericCount RangeOnly RangeSkew RangeStdev RangeSum RangeTextCount RangeXIRR RangeXNPV Rate RecNo Red ReloadTime Repeat Replace ReportComment ReportId ReportName ReportNumber RGB Round RowNo RTrim Second SetDateYear SetDateYearMonth Sign sin sinh Skew sqr sqrt Stdev Sterr STEYX SubField|10 SubStringCount Sum SysColor TableName TableNumber tan tanh TDIST Text TextBetween TextCount TimeZone TINV Today Trim True TTest1_conf TTest1_df TTest1_dif TTest1_lower TTest1_sig TTest1_sterr TTest1_t TTest1_upper TTest1w_conf TTest1w_df TTest1w_dif TTest1w_lower TTest1w_sig TTest1w_sterr TTest1w_t TTest1w_upper TTest_conf TTest_df TTest_dif TTest_lower TTest_sig TTest_sterr TTest_t TTest_upper TTestw_conf TTestw_df TTestw_dif TTestw_lower TTestw_sig TTestw_sterr TTestw_t TTestw_upper Upper UTC Week WeekDay WeekEnd WeekName WeekStart WeekYear White WildMatch WildMatch5 XIRR XNPV Year Year2Date YearEnd YearName YearStart YearToDate Yellow ZTest_conf ZTest_dif ZTest_lower ZTest_sig ZTest_sterr ZTest_upper ZTest_z ZTestw_conf ZTestw_dif ZTestw_lower ZTestw_sig ZTestw_sterr ZTestw_upper ZTestw_z"},n={cN:"built_in",b:"\\b(date|interval|money|num|time|timestamp)\\b#?\\s?(?=(\\(|$))",i:"\\n"},r={cN:"built_in",b:"\\b(if|left|right)\\b#?\\s?(?=(\\(|$))",i:"\\n"},a={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE,{b:"''"}],r:0},i={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE,{b:'""'}],r:0},o={cN:"comment",b:"^rem\\b",e:";",r:10},s={cN:"variable",b:"\\b(let|set)\\b\\s+",e:"\\w+",k:"set let",i:"\\n",r:10},l={cN:"variable",b:"\\$\\(",e:"\\)",i:"\\n",r:10},c={cN:"field",b:"\\[",e:"\\]",r:0};return{aliases:["qvs","qlikview"],cI:!0,k:t,c:[e.CLCM,e.CBCM,e.QSM,n,r,a,i,o,s,l,c,{cN:"sql_statement",b:"\\bsql\\b",e:";",k:"sql",c:[e.CLCM,e.CBCM,e.QSM,a,i,l]},{cN:"load_statement",b:"\\bload\\b",e:";",k:"load distinct",c:[e.CLCM,e.CBCM,e.QSM,n,r,a,i,l,c,{cN:"load_source",b:"(\\bresident\\b|\\binline\\b|\\bautogenerate\\b|\\bfrom\\b)",e:"(?=(;|$))",k:t,c:[e.CLCM,e.CBCM,e.QSM,a,i,l,c,{cN:"format_specification",b:"\\(",e:"\\)",k:{format_specification_items:"ansi oem mac UTF-8 Unicode txt fix dif biff ooxml html xml qvd delimiter is no eof embedded labels explicit no table header line lines comment record quotes msq filters"},c:[e.CLCM,e.CBCM,e.QSM,a,i,l]}]},{cN:"field",b:"\\b[a-zA-Z_][a-zA-Z0-9_-]*\\b",k:t,i:"\ns"}],r:10}]}}),hljs.registerLanguage("sql",function(e){var t={cN:"comment",b:"--",e:"$"};return{cI:!0,i:/[<>]/,c:[{cN:"operator",bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate savepoint release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup",e:/;/,eW:!0,k:{keyword:"abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length character_length charindex charset check checksum checksum_agg choose close coalesce coercibility collate collation collationproperty column columns columns_updated commit compress concat concat_ws concurrent connect connection connection_id consistent constraint constraints continue contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime data database databases datalength date_add date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec engine engines eomonth errors escape escaped event eventdata events except exception exec execute exists exp explain export_set extended external extract fast fetch field fields find_in_set first first_value floor flush for force foreign format found found_rows from from_base64 from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner innodb input insert install instr intersect into is is_free_lock is_ipv4 is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names national natural nchar next no no_write_to_binlog not now nullif nvarchar oct octet_length of old_password on only open optimize option optionally or ord order outer outfile output pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges procedure procedure_analyze processlist profile profiles public publishingservername purge quarter query quick quote quotename radians rand read references regexp relative relaylog release release_lock rename repair repeat replace replicate reset restore restrict return returns reverse revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll sec_to_time second section select serializable server session session_user set sha sha1 sha2 share show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_variant_property sqlstate sqrt square start starting status std stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short validate_password_strength value values var var_pop var_samp variables variance varp version view warnings week weekday weekofyear weight_string when whenever where with work write xml xor year yearweek zon",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int integer interval number numeric real serial smallint varchar varying int8 serial8 text"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}}),hljs.registerLanguage("vbscript",function(e){return{aliases:["vbs"],cI:!0,k:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},i:"//",c:[e.inherit(e.QSM,{c:[{b:'""'}]}),{cN:"comment",b:/'/,e:/$/,r:0},e.CNM]}});


jQuery(document).ready(function(){jQuery(function extJS_bbCodeSource(){var bbCodeWrapper='div.bbCodeSource';var bbCodeTag='pre code';jQuery(bbCodeWrapper).find(bbCodeTag).each(function(i,e){hljs.highlightBlock(e)});});});
 
Статус
В этой теме нельзя размещать новые ответы.
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу