Farbige TES-Script Darstellung in Codeboxen ?

Seidenweber

Reisender
Ich stolpere gerade über die PHP-Codebox, die Schlüsselworte in PHP Code farbig darstellt und frage mich, ob das Forum dafür eine einfache, externe Definitionsdatei benutzt.

Falls das so ist, könnte man vielleicht das Ding in TES-ScriptBox umbenennen und die Definitionen ändern, da wir hier ja i.d.R. keinen PHP Code oder C-ähnlichen Code posten. Die Schlüsselworte unten kommen aus meinem WordFile, was ich mir für TES4 gemacht habe.

Code:
/L12"Oblivion TES4" TES_LANG Line Comment = ; File Extensions = OBL
/Open Brace Strings =  "("
/Close Brace Strings = ")"
/Indent Strings = "Begin" "Else"
/Unindent Strings = "End" "EndIf" "Else"
/Open Fold Strings = "If" "ElseIf" "Else"
/Close Fold Strings = "ElseIf" "Else" "EndIf"
/C1"Funktionen" STYLE_FUNCTION
Activate AddAchievement AddFlames AddItem AddScriptPackage AddSpell AddTopic AdvancePCLevel AdvancePCSkill Autosave
CanHaveFlames CanPayCrimeGold Cast CloseCurrentOblivionGate CloseOblivionGate CompleteQuest CreateFullActorCopy
DeleteFullActorCopy Disable DisableLinkedPathPoints DisablePlayerControls Dispel DispelAllSpells Drop DropMe DuplicateAllItems DuplicateNPCStats
Enable EnableFastTravel EnableLinkedPathPoints EnablePlayerControls EquipItem EssentialDeathReload EvaluatePackage
ForceActorValue ForceCloseOblivionGate ForceFlee ForceTakeCover ForceWeather
GetActionRef GetActorValue GetAlarmed GetAmountSoldStolen GetAngle GetArmorRating GetArmorRatingUpperBody GetAttacked GetBarterGold GetBaseActorValue GetButtonPressed GetClassDefaultMatch GetClothingValue GetCombatTarget GetContainer GetCrime GetCrimeGold GetCrimeKnown GetCurrentAIPackage GetCurrentAIProcedure GetCurrentTime GetCurrentWeatherPercent GetDayOfWeek GetDead GetDeadCount GetDestroyed GetDetected GetDetectionLevel GetDisabled GetDisease GetDisposition GetDistance GetDoorDefaultOpen GetFactionRank GetFactionRankDifference GetFactionReaction GetFatiguePercentage GetForceRun GetForceSneak GetFriendHit GetFurnitureMarkerID GetGameSetting GetGlobalValue GetGold GetHeadingAngle GetIdleDoneOnce GetIgnoreFriendlyHits GetInCell GetInCellParam GetInFaction GetInSameCell GetInWorldspace GetInvestmentGold GetIsAlerted GetIsClass GetIsClassDefault GetIsCreature GetIsCurrentPackage GetIsCurrentWeather GetIsGhost GetIsID GetIsPlayableRace GetIsPlayerBirthsign GetIsRace GetIsReference GetIsSex GetIsUsedItem GetIsUsedItemType GetItemCount GetKnockedState GetLOS GetLevel GetLockLevel GetLocked GetNoRumors GetOffersServicesNow GetOpenState GetPCExpelled GetPCFactionAttack GetPCFactionMurder GetPCFactionSteal GetPCFactionSubmitAuthority GetPCFame GetPCInFaction GetPCInfamy GetPCIsClass GetPCIsRace GetPCIsSex GetPCMiscStat GetPCSleepHours GetPackageTarget GetParentRef GetPersuasionNumber GetPlayerControlsDisabled GetPlayerHasLastRiddenHorse GetPos GetQuestRunning GetQuestVariable GetRandomPercent GetRestrained GetScale GetSecondsPassed GetSelf GetShouldAttack GetSitting GetSleeping GetStage GetStageDone GetStartingAngle GetStartingPos GetTalkedToPC GetTalkedToPCParam GetTimeDead GetTotalPersuasionNumber GetTrespassWarningLevel GetUnconscious GetUsedItemActivate GetUsedItemLevel GetVampire GetWalkSpeed GetWeaponAnimType GetWeaponSkillType GetWindSpeed GoToJail
HasFlames HasMagicEffect HasVampireFed
IsActionRef IsActor IsActorAVictim IsActorDetected IsActorEvil IsActorUsingATorch IsAnimPlaying IsCellOwner IsCloudy IsContinuingPackagePCNear IsCurrentFurnitureObj IsCurrentFurnitureRef IsEssential IsFacingUp IsGuard IsHorseStolen IsIdlePlaying IsInCombat IsInDangerousWater IsInInterior IsInMyOwnedCell IsLeftUp IsOwner IsPCAMurderer IsPCSleeping IsPlayerInJail IsPlayerMovingIntoNewSpace IsPlayersLastRiddenHorse IsPleasant IsRaining IsRidingHorse IsRunning IsShieldOut IsSneaking IsSnowing IsSpellTarget IsSwimming IsTalking IsTimePassing IsTorchOut IsTrespassing IsTurnArrest IsWaiting IsWeaponOut IsXBox IsYielding
Kill KillAllActors
Lock Look LoopGroup
Message MessageBox ModActorValue ModAmountSoldStolen ModBarterGold ModCrimeGold ModDisposition ModFactionRank ModFactionReaction ModPCAttribute ModPCFame ModPCInfamy ModPCMiscStat ModPCSkill ModScale MoveTo
PayFine PayFineThief PickIdle PlaceAtMe PlayBink PlayGroup PlayMagicEffectVisuals PlayMagicShaderVisuals PlaySound PlaySound3D PositionCell PositionWorld PreloadMagicEffect
RefreshTopicList ReleaseWeatherOverride RemoveAllItems RemoveFlames RemoveItem RemoveMe RemoveScriptPackage RemoveSpell Reset3DState ResetFallDamageTimer ResetHealth ResetInterior Resurrect Rotate
SameFaction SameFactionAsPC SameRace SameRaceAsPC SameSex SameSexAsPC Say SayTo ScriptEffectElapsedSeconds SelectPlayerSpell SendTrespassAlarm SetActorAlpha SetActorFullName SetActorRefraction SetActorValue SetAlert SetAngle SetAtStart SetBarterGold SetCellFullName SetCellOwnership SetCellPublicFlag SetClass SetCombatStyle SetCrimeGold SetDestroyed SetDoorDefaultOpen SetEssential SetFactionRank SetFactionReaction SetForceRun SetForceSneak SetGhost SetIgnoreFriendlyHits SetInCharGen SetInvestmentGold SetItemValue SetLevel SetNoRumors SetOpenState SetOwnership SetPCExpelled SetPCFactionAttack SetPCFactionMurder SetPCFactionSteal SetPCFactionSubmitAuthority SetPCFame SetPCInfamy SetPCSleepHours SetPackDuration SetPos SetQuestObject SetRestrained SetRigidBodyMass SetScale SetShowQuestItems SetSize SetStage SetUnconscious SetWeather ShowBirthsignMenu ShowClassMenu ShowDialogSubtitles ShowEnchantment ShowMap ShowRaceMenu ShowSpellMaking SkipAnim StartCombat StartConversation StartQuest StopCombat StopCombatAlarmOnActor StopLook StopMagicEffectVisuals StopMagicShaderVisuals StopQuest StopWaiting
TrapUpdate TriggerHitShader
UnequipItem Unlock
VampireFeed
Wait WakeUpPC WhichServiceMenu
Yield
/C2"Befehle" STYLE_COMMAND
Begin
Else ElseIf End EndIf
Float
GameMode GetAV
If
Long 
MenuMode
OnActivate OnActorEquip OnActorUnequip OnAdd OnAlarm OnAlarmVictim OnDeath OnDrop OnEquip OnHit OnHitWith OnKnockout OnLoad OnMagicEffectHit OnMurder OnPackageChange OnPackageDone OnPackageStart OnReset OnSell OnStartCombat OnTrigger OnTriggerActor OnTriggerMob OnUnequip
Ref Return
ScriptEffectFinish ScriptEffectStart ScriptEffectUpdate Scriptname Set Short
To
/C3"Operators" STYLE_OPERATOR
!
< <=
> >=
= =>
| ||
& &&
 
Ich fürchte das ist nicht so einfach. php kennt die Funktion highlight_string, welche einen String nimmt und ihn ge-syntaxhighlight-et ausgibt. Ich nehme an, dass für erwähnten vB Code diese Funktion verwendet wird. Das bedeutet dann aber, dass der vB Code ein eigenes Highlighting Modul bräuchte. Ich habe zur Zeit leider nicht die Zeit so etwas zu programmieren.