├── .github └── FUNDING.yml ├── README.md └── UDL └── GPD.byRajendraSingh.xml /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: SinghRajenM 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UDL for GPD 2 | A Notepad++ UDL (User Defined Language) for GPD (Generic Printer Description) and GDL (Generic Description Language). 3 | 4 | Notepad++ supports around 80 programming languages for syntax highlighting & folding, but unfortunately, most widely used GPD/GDL for PCL driver and PPD for PS driver are not supported so far by notepad++. Hence, this UDL server the purpose for GPD/GDL. 5 | 6 | GPD: https://docs.microsoft.com/en-us/windows-hardware/drivers/print/introduction-to-gpd-files 7 | 8 | GDL: https://docs.microsoft.com/en-us/windows-hardware/drivers/print/generic-description-language 9 | 10 | 11 | ## How it works: 12 | 13 | It has to follow Notepad++ guideline which is intended to change time to time. For now, you have to manually install a new User Defined Language. 14 | More details of what those steps entail can be found in the ["Import a UDL"](https://npp-user-manual.org/docs/user-defined-language-system/#import-a-udl) section of the official documentation. 15 | 16 | 17 | ### Method 1: 18 | 1. Download GPD.byRajendraSingh.xml. 19 | 2. Open Notepad++, and from language menu (Language -> User Defined LanguageLanguage -> Open User define Language Folder...) 20 | 3. Import the file by placing the file in your userDefineLangs folder and restarting Notepad++. 21 | 4. Now, you are done. Enjoy the beauty for Notepad++. 22 | 23 | ### Method 2 24 | Alternatively, you can use the User Defined Language dialog box to Import your file, but that places the UDL in the combined file, which is more complicated to maintain. Follow below steps - 25 | 26 | 1. Download GPD.byRajendraSingh.xml. 27 | 2. Open Notepad++, and from language menu (Language -> User Defined Language -> Define your language). 28 | 3. Click on "Import" button on the "User Defined Language" dialog and restarting Notepad++. 29 | 4. Now, you are done. Enjoy the beauty for Notepad++. 30 | -------------------------------------------------------------------------------- /UDL/GPD.byRajendraSingh.xml: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 00*% 01 02 03 04 34 | 35 | 0x 36 | A B C D E F a b c d e f 37 | 38 | 39 | 40 | 41 | : = ( , ) 42 | 43 | { 44 | 45 | } 46 | 47 | 48 | 49 | *Ifdef 50 | *Elseifdef *Else 51 | *Endif 52 | *switch *case *default *Feature *IgnoreBlock *IsXPSDriver *CodePage *FontCartSlots *GPDFileName *GPDFileVersion *GPDSpecVersion *HelpFile *InstalledOptionName *MasterUnits *MaxCopies *ModelName *NotInstalledOptionName *Personality *PrinterType *PrintRate *PrintRatePPM *PrintRateUnit *rcInstalledOptionNameID *rcNotInstalledOptionNameID *rcPersonalityID *rcPrinterIconID *ResourceDLL *MemoryUsage *OEMCustomData *OutputOrderReversed? *ReselectFont *ReverseBandOrderForEvenPages? *RotateCoordinate? *RotateFont? *RotateRaster? *TextCaps *ChangeColorModeOnDoc? *CyanInMagentaDye *CyanInYellowDye *EnableGDIColorMapping *MagentaInCyanDye *MagentaInYellowDye *YellowInCyanDye *YellowInMagentaDye *AbsXMovesRightOnly? *BadCursorMoveInGrxMode *CursorXAfterCR *EjectPageWithFF? *LineSpacingMoveUnit *MaxLineSpacing *UseSpaceForXMove? *XMoveThreshold *XMoveUnit *YMoveAttributes *YMoveThreshold *YMoveUnit *CharPosition *DefaultCTT *DefaultFont *LookAheadRegion *MaxFontUsePerPage *TextYOffset *DLSymbolSet *FontFormat *MaxFontID *MaxGlyphID *MaxNumDownFonts *MinFontID *MinGlyphID *TextHalftoneThreshold *DiffFontsPerByteMode? *CursorXAfterSendBlockData *CursorYAfterSendBlockData *MaxMultipleRowBytes *MirrorRasterByte? *MirrorRasterPage? *MoveToX0BeforeSetColor? *OptimizeLeftBound? *RasterSendAllData? *SendMultipleRows? *StripBlanks *UseExpColorSelectCmd? *CursorXAfterRectFill *CursorYAfterRectFill *MaxGrayFill *MinGrayFill *CallbackID *Cmd *NoPageEject? *Order *Params *Command *rcInstallableFeatureNameID *rcNameID *Name *Option *rcIconID *rcInstallableFeatureNameID *UpdateQualityMacro? *PrintSchemaPrivateNamespaceURI *PreAnalysisOptions *TTFSEnabled? *DeviceFonts *Color? *ColorPlaneOrder *DevBPP *DevNumOfPlanes *DrvBPP *IPCallbackID *PaletteProgrammable? *PaletteSize *RasterMode *HTCallbackID *HTNumPatterns *HTPatternSize *rcHTPatternID *MemConfigKB *MemConfigMB *MemoryConfigKB *BottomMargin *CenterPrintable? *CursorOrigin *CustCursorOriginX *CustCursorOriginY *CustPrintableOriginX *CustPrintableOriginY *CustPrintableSizeX *CustPrintableSizeY *MaxSize *MaxPrintableWidth *MinLeftMargin *MinSize *PageDimensions *PageProtectMem *PrintableArea *PrintableOrigin *RotateSize? *TopMargin *DPI *MinStripBlankPixels *PinsPerLogPass *PinsPerPhysPass *RequireUniDir? *SpotDiameter *TextDPI *ConcealFromUI? *ConflictPriority *DefaultOption *FeatureType *HelpIndex *Installable? *InstallableFeatureName *BlockMacro *Macros *Constraints *InvalidCombination *InvalidInstallableCombination InstalledConstraints NotInstalledConstraints *FontCartridge *CartridgeName *Fonts *LandscapeFonts *PortraitFonts *rcCartridgeNameID *TTFS *TTFontName *DevFontName *TTFSEnabled? *BestQualitySettings *BetterQualitySettings *DefaultQuality *DraftQualitySettings 53 | Collate ColorMode Duplex Halftone InputBin MediaType Memory Orientation OutputBin PageProtect RESDLL Resolution Stapling 54 | CmdSelectBlackColor CmdSelectBlueColor CmdSelectCyanColor CmdSelectGreenColor CmdSelectMagentaColor CmdSelectRedColor CmdSelectYellowColor CmdSelectWhiteColor CmdBackSpace CmdCR CmdFF CmdLF CmdPopCursor CmdPushCursor CmdSetAnyRotation CmdSetLineSpacing CmdSetSimpleRotation CmdUniDirectionOff CmdUniDirectionOn CmdXMoveAbsolute CmdXMoveRelLeft CmdXMoveRelRight CmdYMoveAbsolute CmdYMoveRelDown CmdYMoveRelUp CmdStartJob CmdStartDoc CmdStartPage CmdEndPage CmdEndDoc CmdEndJob CmdCopies CmdSleepTimeOut CmdSelect CmdDeleteFont CmdDeselectFontID CmdSelectFontHeight CmdSelectFontID CmdSelectFontWidth CmdSetCharCode CmdSetFontID CmdBoldOff CmdBoldOn CmdClearAllFontAttribs CmdItalicOff CmdItalicOn CmdSelectDoubleByteMode CmdSelectSingleByteMode CmdSetFontSim CmdStrikeThruOff CmdStrikeThruOn CmdUnderlineOff CmdUnderlineOn CmdVerticalPrintingOff CmdVerticalPrintingOn CmdWhiteTextOff CmdWhiteTextOn CmdDisableCompression CmdEnableDRC CmdEnableFE_RLE CmdEnableOEMComp CmdEnableTIFF4 CmdBeginRaster CmdEndRaster CmdSetDestBmpHeight CmdSetDestBmpWidth CmdSetSrcBmpHeight CmdSetSrcBmpWidth CmdSendBlockData CmdEndBlockData CmdSendBlackData CmdSendBlueData CmdSendCyanData CmdSendGreenData CmdSendMagentaData CmdSendRedData CmdSendYellowData CmdRectBlackFill CmdRectGrayFill CmdRectWhiteFill CmdSetRectHeight CmdSetRectSize CmdSetRectWidth PAIR LIST 55 | TRUE FALSE ON OFF NONE VERTICAL HORIZONTAL HT_PATSIZE_ AUTO CASSETTE ENVFEED ENVMANUAL FORMSOURCE LARGECAPACITY LARGEFMT LOWER MANUAL MIDDLE SMALLFMT TRACTOR UPPER GLOSSY STANDARD TRANSPARENCY PORTRAIT LANDSCAPE_CC90 LANDSCAPE_CC270 DOC_PROPERTY JOB_PROPERTY PRINTER_PROPERTY FORMSOURCE X_PORTRAIT X_LANDSCAPE Y_PORTRAIT Y_LANDSCAPE LETTER DISPLAY AT_PRINTABLE_X_ORIGIN AT_CURSOR_X_ORIGIN NO_MOVE AUTO_INCREMENT H_BYTE V_BYTE LEADING ENCLOSED TRAILING CYAN MAGENTA YELLOW BLACK PARSER_VER_1.0 BlueValue CurrentFontID CurrentPaletteIndex CursorOriginX CursorOriginY DestX DestXRel DestY DestYRel FontBold FontHeight FontItalic FontMaxWidth FontStrikeThru FontUnderLine FontWidth GraphicsXRes GraphicsYRes GrayPercentage GreenValue LinefeedSpacing NextFontID NextGlyph NumOfCopies NumOfDataBytes PageNumber PaletteIndexToProgram PatternBrushID PatternBrushSize PatternBrushType PhysPaperLength PhysPaperWidth PrintDirInCCDegrees RasterDataHeightInPixels RasterDataWidthInBytes RectXSize RectYSize RedValue TextXRes TextYRes 56 | *Define *Undefine *Include *SetPPPrefix 57 | JOB_SETUP. PAGE_SETUP. WINNT_ AT_GRXDATA_ HT_PATSIZE_ 58 | EXTERN_GLOBAL 59 | 60 | 00" 00' 01\ 01, 02" 02' 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | --------------------------------------------------------------------------------