Gah - a solution with more questions. – EntropicLqd

Legacy:Proton/UnrealScript

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search

Copy and paste the text below to a file, name it UnrealScript.sch (or something) and put it in the Proton\SyntaxSchemes directory. Open the file extensions.ini in the same directory and add the following line to it:

 uc=UnrealScript

object TPersHolder
  P.Name = 'UnrealScript'
  P.SyntaxBlocks = <
    item
      Name = 'Default'
      ID = 0
      CaseSensitive = False
      UseMetaSymbol = True
      UseMetaToWrapLines = True
      MetaSymbol = '\'
      FIText = 0
      FIIntNum = 1
      FIFloatNum = 2
      FIHexNum = 3
      FIDirective = 4
      FISymbol = 11
      UseSymbols = True
      UseLineDirectives = True
      UseComments = True
      UseSingleLineComments = True
      UseMultiLineComments = True
      UseStrings = True
      UseSingleLineStrings = True
      UseNumbers = True
      UsePrefixedNumbers = True
      UseSuffixedNumbers = True
      UseMultipleNumSuffixes = False
      UsePrefixedSuffixedNumbers = False
      UsePSNumComposition = True
      UseKeywords = True
      BlockDelimiters = <>
      LineDirectivePrefix = '#exec '
      SingleLineCommentDelimiters = <
        item
          FontID = 5
          LeftDelimiter = '//'
        end>
      MultiLineCommentDelimiters = <
        item
          FontID = 6
          LeftDelimiter = '/*'
          RightDelimiter = '*/'
        end>
      SingleLineStringDelimiters = <
        item
          FontID = 8
          LeftDelimiter = #39
          RightDelimiter = #39
        end
        item
          FontID = 9
          LeftDelimiter = '"'
          RightDelimiter = '"'
        end>
      NumPrefixes = <
        item
          LeftDelimiter = '+'
        end
        item
          LeftDelimiter = '-'
        end
        item
          LeftDelimiter = '0x'
        end
        item
          LeftDelimiter = '0X'
        end>
      NumSuffixes = <
        item
          LeftDelimiter = 'f'
        end
        item
          LeftDelimiter = 'F'
        end>
      KeywordSets = <
        item
          FontID = 10
          Name = 'reserved'
          Keywords =
            'abstract,array,arraycount,assert,auto,automated,begin,break,' +
            'case,class,coerce,collapsecategories,config,const,continue,default,' +
            'defaultproperties,delegate,dependson,deprecated,do,dontcollapsecategories,' +
            'edfindable,editconst,editinline,editinlinenew,editinlinenotify,' +
            'editinlineuse,else,end,enum,enumcount,event,exec,expands,export,' +
            'exportstructs,extends,false,final,for,foreach,function,' +
            'global,globalconfig,goto,guid,hidecategories,if,ignores,import,' +
            'input,insert,instanced,intrinsic,iterator,latent,length,local,' +
            'localized,native,nativereplication,new,noexport,none,' +
            'noteditinlinenew,notplaceable,nousercreate,operator,optional,' +
            'out,perobjectconfig,placeable,postoperator,preoperator,' +
            'private,protected,reliable,remove,replication,return,safereplace,' +
            'self,showcategories,simulated,singular,skip,state,static,stop,' +
            'struct,super,switch,transient,travel,true,unreliable,' +
            'until,var,while,within'
        end
        item
          FontID = 13
          Name = 'datatypes'
          Keywords = 'bool,byte,float,int,name,pointer,string'
        end
        item
          FontID = 12
          Name = 'structs'
          Keywords =
            'ActorRenderDataPtr,AdminGroup,AdminPlayer,AdminUser,ADrop,AnimParams,AnimRep,' +
            'APackInfo,ArrayItem,AttachSocket,BatchReference,BeaconInfo,BoundingVolume,Box,' +
            'BuilderPoly,ChatStruct,Color,CompressedPosition,ConsoleMessage,Coords,' +
            'CustomConfiguration,CustomMapList,DecoInfo,DecorationLayer,DecorationLayerData,' +
            'DecorationType,DecoSectorInfo,DigitSet,DisplayMode,FavoritesServerInfo,FBombWidget,' +
            'FFlagWidget,FloatBox,FPointWidget,FSectionDigest,GameList,Guid,GUIListElem,' +
            'HitFXData,HtmlChar,HudLocalizedMessage,IntBox,InterpCurve,InterpCurvePoint,' +
            'Interpolator,Interpomatic,IpAddr,KCarState,KeyBinding,KeyInfo,KeyValuePair,' +
            'KRBVec,KRigidBodyState,KSimParams,LightRenderDataPtr,LODLevel,LookPreset,' +
            'MaterialSequenceItem,Matrix,MD5UpdateData,MultiColumnSortData,MutatorRecord,' +
            'NormalPair,NotifyInfo,NumericWidget,Orientation,Particle,ParticleBeamData,' +
            'ParticleBeamEndPoint,ParticleBeamScale,ParticleColorScale,ParticleProjectorInfo,' +
            'ParticleRevolutionScale,ParticleSound,ParticleSparkData,ParticleTimeScale,' +
            'ParticleTrailData,ParticleTrailInfo,ParticleVelocityScale,Plane,PlayerInfo,' +
            'PlayerMessage,PlayerNameInfo,PlayerRecord,PlayerResponseLine,PlayInfoData,' +
            'PlayListStruct,PointRegion,ProcMeshVertex,ProjectorRenderInfoPtr,Quat,QueryData,' +
            'Range,RangeVector,Rotator,RowGroup,Scale,ServerResponseLine,SoundEmitter,Spark,' +
            'SpriteWidget,StaticMeshProjectorRenderInfoPtr,StoredPassword,TerrainLayer,' +
            'TerrainMaterialLayer,URL,Vector,VoiceChatterInfo,WeaponStats,WeatherPcl,xMapList'
        end
        item
          FontID = 12
          Name = 'enums'
          Keywords =
            'DMode,EAffect,EAlertnessType,EAlphaOperation,EAttenFunc,EBeamEndPointType,' +
            'EBlendMode,EBumpType,ECamOrientation,EClickSound,EClickSound,EClientToMaster,' +
            'EColorFadeType,EColorOperation,ECsgOper,EDetailMode,EDoubleClickDir,EDrawPivot,' +
            'EDrawType,eEditMask,EEnvMapTransformType,EFilterState,EFireAnimState,EFlagState,' +
            'EFluidGridType,EForceType,EFrameBufferBlending,EGibType,EGUISplitterType,' +
            'EHeartbeatType,EHingeType,eIconPosition,eIconPosition,eImgAlign,eImgAlign,' +
            'eImgStyle,EImpDrawMode,EImpLightMode,EImpSpaceMode,EInputAction,EInputKey,' +
            'eKillZType,ELevelAction,ELightEffect,ELightType,ELinkMode,ELinkState,ELODSet,' +
            'EMasterToServer,EMatAction,EMaterialSequenceAction,EMaterialSequenceTriggerActon,' +
            'EMatTickFunc,EMenuRenderStyle,eMenuState,EMeshSectionMethod,EMOTDResponse,' +
            'EMoverEncroachType,EMoverGlideType,EMusicTransition,ENetMode,ENetRole,EOrders,' +
            'EOutputBlending,ePageAlign,EPainterTargetingState,EParticleCollisionSound,' +
            'EParticleCoordinateSystem,EParticleDirectionUsage,EParticleDrawStyle,' +
            'EParticleEffectAxis,EParticleMeshSpawning,EParticleRotationSource,' +
            'EParticleStartLocationShape,EParticleVelocityDirection,EPathStyle,EPhysics,' +
            'EPhysicsDetailLevel,EPingCause,EPlayerPos,EPointState,EPointState,EProcMeshType,' +
            'EProjectorBlending,EQueryInterfaceCommand,EQueryType,EReceiveMode,ERenderStyle,' +
            'ERequestType,EResolution,EResponseInfo,ERetriggerAction,ESAStatus,EScaleMode,' +
            'EScriptFollow,eScrollState,EServerToMaster,ESheerAxis,ESheetAxis,' +
            'ESkelLocationUpdate,ESortOrder,ESoundOcclusion,ESoundSlot,ESoundType,ESpark,' +
            'ESpeechMenuState,ESpreadStyle,EStackMode,EStatsServerView,ESurfaceTypes,' +
            'ETexClampMode,ETexCoordCount,ETexCoordSrc,ETexEnvMapType,ETexMapAxis,' +
            'ETexOscillationType,ETexRotationType,eTextAlign,eTextCase,ETextureFormat,' +
            'ETranslocServerView,ETravelType,ETriggerType,EUV2Mode,EViewMutatorMode,' +
            'EWeaponClientState,EWeaponStayServerView,EWeatherType,ExParticleTypes,' +
            'ExSpawningTypesJumpType,InterpStyle,PanningType,TimingType,WDrop'
        end>
    end>
  P.FontTable = <
    item
      FontID = 0
      GlobalAttrID = 'Whitespace'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = []
    end
    item
      FontID = 1
      GlobalAttrID = 'Integer'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clGreen
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = []
    end
    item
      FontID = 2
      GlobalAttrID = 'Float'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clGreen
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = []
    end
    item
      FontID = 3
      GlobalAttrID = 'Integer'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clGreen
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = []
    end
    item
      FontID = 4
      GlobalAttrID = 'Defines'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = [fsBold]
    end
    item
      FontID = 5
      GlobalAttrID = 'Comment'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clGreen
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = [fsItalic]
    end
    item
      FontID = 6
      GlobalAttrID = 'Comment'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clGreen
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = [fsItalic]
    end
    item
      FontID = 7
      GlobalAttrID = 'String'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clMaroon
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = [fsItalic]
    end
    item
      FontID = 8
      GlobalAttrID = 'String'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clMaroon
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = [fsItalic]
    end
    item
      FontID = 9
      GlobalAttrID = 'String'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clMaroon
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = [fsItalic]
    end
    item
      FontID = 10
      GlobalAttrID = 'Reserved words'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlue
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = []
    end
    item
      FontID = 11
      GlobalAttrID = 'Delimiters'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = [fsBold]
    end
    item
      FontID = 12
      GlobalAttrID = 'Identifiers'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clTeal
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = []
    end
    item
      FontID = 13
      GlobalAttrID = 'Identifiers'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clTeal
      Font.Height = -13
      Font.Name = 'Courier New'
      Font.Style = [fsItalic]
    end>
  P.SyntaxVersion = 3
end