Jump to content

Notepad++ language for CFG files


genericeventhandler

Recommended Posts

I've been working on this for a while, so I thought that I would share, 

This is a notepad++ configuration file to add a new ksp language into the program  

Steps to use:

  1. download the file locally
  2. go to language in notepad++ 
  3. click user defined
  4. import and point to the file
  5. load a config file and select ksp as language. 

--- EDIT: Dropbox stopped sharing, here's another link

New Link : https://1drv.ms/u/s!Au_FusKqvwUWguRcaLxW9iAFa5veaA

 

It formats cfg files so you can find errors easier. 

Let me know if you find it useful

Ge. 

notepad++.png

Edited by genericeventhandler
Link to comment
Share on other sites

3 hours ago, genericeventhandler said:

Is your notepad++ up to date? It should default to call as the importance format

 

v6.8.8... but I see 7.0 JUST released 9/22 ... lol

EDIT: OK... So the problem seems to be somewhere from beyond my keyboard... :P

Could you note that this is actually a THEME, instead of a PLUGIN, for us, wee-little programming noobs... :)
Maybe note that in step 4 :)

But now, even after figuring THAT out... KSP still doesnt show up as a language in the list?

 

Edited by Stone Blue
Link to comment
Share on other sites

  • 2 weeks later...
On 9/22/2016 at 5:28 AM, genericeventhandler said:

 

Steps to use:

  1. download the file locally
  2. go to language in notepad++ 
  3. click user defined
  4. import and point to the file
  5. load a config file and select ksp as language. 

https://dl.dropboxusercontent.com/u/27085657/notepadKSP.udl.xml

It formats cfg files so you can find errors easier. 

 

how do I download?

 

Link to comment
Share on other sites

  • 8 months later...
43 minutes ago, Errol said:

The link seems to be broken for me as well, I just went and downloaded notepad++ to try this out with too! Anyone have a copy of the file to share?

https://1drv.ms/u/s!Au_FusKqvwUWguRcaLxW9iAFa5veaA

Here you go. 

Spoiler

<NotepadPlus>
    <UserLang name="ksp" ext="cfg" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="yes" forcePureLC="0" decimalSeparator="0" />
            <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00// 01 02((EOL)) 03 04</Keywords>
            <Keywords name="Numbers, prefix1">-</Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1">,</Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1"></Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open">{</Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close">}</Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open">{</Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close">}</Keywords>
            <Keywords name="Keywords1">PART MODEL INTERNAL MODULE RESOURCE PROPELLANT CONSTRAINT DRAG_CUBE CONSTRAINLOOKFX OUTPUT_RESOURCE atmosphereCurve</Keywords>
            <Keywords name="Keywords2">True False</Keywords>
            <Keywords name="Keywords3">Aero Propulsion Pods FuelTank start basicRocketry generalRocketry stability survivability advRocketry generalConstruction flightControl scienceTech heavyRocketry fuelSystems advConstruction aerodynamicSystems advFlightControl electrics spaceExploration landing heavierRocketry specializedConstruction actuators supersonicFlight specializedControl precisionEngineering advElectrics advExploration advLanding nuclearPropulsion advMetalworks composites advAerodynamics highAltitudeFlight largeControl unmannedTech ionPropulsion largeElectrics electronics fieldScience veryHeavyRocketry metaMaterials heavyAerodynamics hypersonicFlight advUnmanned specializedElectrics advScienceTech advancedMotors experimentalRocketry nanolathing experimentalAerodynamics aerospaceTech experimentalElectrics experimentalScience automation experimentalsMotors</Keywords>
            <Keywords name="Keywords4">= name</Keywords>
            <Keywords name="Keywords5"></Keywords>
            <Keywords name="Keywords6">@PART :FOR :NEEDS @RESOURCE %MODULE</Keywords>
            <Keywords name="Keywords7">ElectricCharge Supplies Ablator MonoPropellant LiquidFuel Oxidizer</Keywords>
            <Keywords name="Keywords8">rescaleFactor CoLOffset CoPOffset module author model scale CoMOffset node_stack_top node_stack_bottom node_stack_right node_stack_left TechRequired entryCost cost category subcategory title manufacturer description attachRules mass dragModelType maximum_drag minimum_drag angularDrag crashTolerance breakingForce breakingTorque maxTemp CrewCapacity useInternalDragModel deflectionLiftCoeff dragAtMaxAoA dragAtMinAoA ablativeResource lossExp lossConst pyrolysisLossFactor reentryConductivity ablationTempThresh amount maxAmount node_attach vesselType tags minimumCrew SASServiceLevel PitchTorque YawTorque RollTorque rate thrusterTransformName thrusterPower resourceName resourceFlowMode reviewActionName storeActionName evaOnlyStorage storageRange fx_exhaustFlame_blue fx_exhaustLight_blue fx_smokeTrail_light sound_vent_medium sound_rocket_hard sound_vent_soft sound_explosion_low heatConductivity skinInternalConductionMult emissiveConstant bulkheadProfiles thrustVectorTransformName exhaustDamage ignitionThreshold minThrust maxThrust heatProduction fxOffset EngineType exhaustDamageDistanceOffset ratio DrawGauge key gimbalTransformName gimbalRange thrustProviderModuleIndex fxMax maxDistance falloff thrustTransformName explosionPotential fuelCrossFeed thermalMassModifier mesh skinMaxTemp actionGUIName experimentID experimentActionName resetActionName useStaging useActionGroups hideUIwhenUnavailable rerunnable xmitDataScalar usageReqMaskInternal usageReqMaskExternal textureQuadName animationName startEventGUIName endEventGUIName buoyancy fx_gasBurst_white sound_vent_large PhysicsSignificance stageOffset childStageOffset ejectionForce explosiveNodeID crossfeedStatus toggleEditor toggleFlight useEvent situationMask type value prestige test body cube sunTracking raycastTransformName pivotName isBreakable chargeRate allowAnimationWhileShielded isOneShot packetInterval packetSize packetResourceCost requiredResource DeployFxModules skipColliderIgnores skinMassPerArea density procedural highRange lowRange presenceChance wheelColliderTransformName wheelTransformName wheelType FitWheelColliderToMesh radius center groundHeightOffset TooltipTitle TooltipPrimaryField baseModuleIndex suspensionTransformName suspensionColliderName suspensionDistance targetPosition springRatio damperRatio maxBrakeTorque brakeResponse statusLightModuleIndex animationTrfName animationStateName deployedPosition deployTargetTransformName TsubSys useStandInCollider slaveModules wheelTransformRefName wheelTransformBaseName bogeyTransformName bogeyRefTransformName deployModuleIndex maxPitch minPitch restPitch pitchResponse bogeyAxis targetName rotatorsName lightMeshRendererName lightMatPropertyName colorOn colorOff environments lightName useAnimationDim lightBrightenSpeed lightDimSpeed resourceAmount useResources stressTolerance impactTolerance deflectionMagnitude deflectionSharpness slipMagnitude slipSharpness explodeMultiplier isAlwaysActive</Keywords>
            <Keywords name="Delimiters">00 01= 02((EOL)) 03[ 04 05] 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="2" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="008040" bgColor="FFFFFF" fontStyle="3" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontStyle="1" fontSize="12" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="000000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="FF00FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="0000FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="0000FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="0000FF" bgColor="FFFFFF" fontStyle="3" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="FF0000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="008080" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="14" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="FF0080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="008000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

 

If the share link goes down again, copy this into notepad and save as Xml.

Geh

Link to comment
Share on other sites

Just an idea, is it possible to get this added to the code tags in the forum post editor? Would be really nice to be able to see everything the same way here on the forums. 

(got it working for me, thanks)

Link to comment
Share on other sites

  • 1 year later...

I realize this is an old thread, but I just had to come in here to say my thanks.  Thanks @genericeventhandler!

I've done a lot of work with .cfg files and other Config Node files like .craft in KSP, and had always wanted this but never found it.  Now, a few years later while revisiting my projects, I find this - score!

I wrote a config node parsing class in PHP back then that powers my "Craft Kitchen" web tools.  If anyone is interested, I can put it on GitHub.

Link to comment
Share on other sites

  • 1 year later...

well, theres an updated version of genericeventhandler's, that @JadeOfMaar currently maintains and updates, here:

https://github.com/JadeOfMaar/NPP_KSPlang

I have a text list, and a spreadsheet template, below, that I used to do updates back for KSP 1.2.2, if anyone wnats to use it as a template for tracking/submitting changes/updates... vOv

https://github.com/StoneBlue/KSPLanguageforNotePad--

Edited by Stone Blue
Link to comment
Share on other sites

18 hours ago, Stone Blue said:

well, theres an updated version of genericeventhandler's, that @JadeOfMaar currently maintains and updates, here:

https://github.com/JadeOfMaar/NPP_KSPlang

I have a text list, and a spreadsheet template, below, that I used to do updates back for KSP 1.2.2, if anyone wnats to use it as a template for tracking/submitting changes/updates... vOv

https://github.com/StoneBlue/KSPLanguageforNotePad--

Im having issues with jades version, the code folders are confused and its triggering ocd. I LOVE the fold feature but with how messy it looks and the fact it cant figuer out what to fold i just had to turn it off.

Thanks for your templates, im very new to ksp modding despide dabling with it in the past.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...