• How to set Python as your language

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    dailD
    Settings > Preferences > New Document > Default Language
  • 0 Votes
    3 Posts
    2k Views
    Tim BrutonT
    Thank you for introducing me to that plugin, I never knew that thing existed but it has already changed my life :]
  • Disable highlighting of matching parentheses

    Locked settings syntax highlight
    3
    0 Votes
    3 Posts
    10k Views
    SullivanS
    @guy038 Thanks! Didn’t realize it was that simple.
  • Notepad++ crashes, file is lost

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Delete Auto-Inserted Character on Delete of Typed Character

    5
    1 Votes
    5 Posts
    4k Views
    John SparkJ
    bump this ! it’s wanted feature damn it
  • View of character "Selection" counter is obscured

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Kasper GraversenK
    Please provide a screenshot and a version number of notepad++ - it looks great on my v6.9.2 with plenty of digits displaying
  • Text Field Seperator

    7
    0 Votes
    7 Posts
    47k Views
    dailD
    Nothing exists (existed?) that does it. However I wrote a quick piece of Lua to do it. I can’t say the columns are that pretty but this is as close as you will probably get to indicating columns based on width. Download the LuaScript plugin Extract the zip and copy the DLL to your plugins directory Select Plugins > LuaScript > Edit Startup Script Paste the chunk of code (See end of this post) Edit the first few lines of of the code to do what you want (you’ll probably just need to set the file extensions you want) Save and restart Notepad++ Open one of your files Again, it isn’t the prettiest but there’s really nothing else I know of that will do what you want. Adjusting colors may help. For example… [image: PdeOi5y.png] The code… -- Configure things here... local registeredExtensions = {".csv", ".xyz"} local columWidth = 8 local col1Color = 0xd0d0d0 local col2Color = 0xaaaaaa local field_indic = {12, 13} -- not sure what one is best to use but this works local function setupEditor(e) e.IndicStyle[field_indic[1]] = INDIC_STRAIGHTBOX e.IndicStyle[field_indic[2]] = INDIC_STRAIGHTBOX e.IndicUnder[field_indic[1]] = true e.IndicUnder[field_indic[2]] = true e.IndicAlpha[field_indic[1]] = 255 e.IndicAlpha[field_indic[2]] = 255 e.IndicFore[field_indic[1]] = col1Color -- Color of first column e.IndicFore[field_indic[2]] = col2Color -- Color of second column end setupEditor(editor1) setupEditor(editor2) function highlightColumns() local function getLineRangeOnScreen() local firstLine = editor.FirstVisibleLine local lastLine = firstLine + editor.LinesOnScreen return firstLine, lastLine end local function getRangeOnScreen() local firstLine, lastLine = getLineRangeOnScreen() local startPos = editor:PositionFromLine(firstLine) local endPos = editor.LineEndPosition[lastLine] return startPos, endPos end local function clearIndicatorOnScreen() local s, e = getRangeOnScreen() editor:IndicatorClearRange(s, e - s) end -- Clear everything editor.IndicatorCurrent = field_indic[1] clearIndicatorOnScreen() editor.IndicatorCurrent = field_indic[2] clearIndicatorOnScreen() local s, e = getLineRangeOnScreen() for i=s,e do local index = 0 local lineStart = editor:PositionFromLine(i) local lineEnd = editor.LineEndPosition[i] for p=0,editor:LineLength(i),columWidth do editor.IndicatorCurrent = field_indic[(index % 2) + 1] local col1 = editor:FindColumn(i, p) local col2 = editor:FindColumn(i, p + columWidth) editor:IndicatorFillRange(col1, col2 - col1) index = index + 1 end end end npp.AddEventHandler("OnSwitchFile", function(filename, bufferid) -- Always remove it npp.RemoveEventHandler("OnUpdateUI", highlightColumns) -- Check to see if the extension exists for _,v in pairs(registeredExtensions) do if v == npp:GetExtPart() then npp.AddEventHandler("OnUpdateUI", highlightColumns) return end end end)
  • Using Notepad++ zip package

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Navee Sunny SharmaN
    Hi @kawinga Thank you for the reply. I just wanted confirmation before I tried it, I didn’t want to get into trouble whilst doing so. Kind regards, Nav.
  • How make NPP opens .json as JS, not JSON?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    kawingaK
    Hi totalamd, check out %programfiles(x86)%\Notepad++\langs.model.xml. You will find a Section Language name=“json”. Kind regards, Robert
  • 1 Votes
    3 Posts
    3k Views
    gerdb42G
    CTRL-ALT-SHIFT-Rand CTRL-ALT-SHIFT-C are defined by the XML Tools plugin to do XML(!) commenting and uncommenting. Unfortunately CTRL-ALT-SHIFT-R is also bound to the run command “Launch in Chrome” which takes precedence over the plugin-command. Also unfortunately NPP does not detect and warn about multiple shortcut assignments. So you need to check your shortcut settings and adjust them to your liking.
  • How to change default font settings on pane preview

    Locked preview window
    2
    0 Votes
    2 Posts
    2k Views
    dailD
    No clue what you are referring to. Try showing a screenshot.
  • How to keep my images from moving from one place to another

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS
    Don’t expect an answer here because this is not Notepad++ related.
  • Saved doc. header setting?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD
    There is no option for that.
  • Notepad++ text manipulation very slow in RDP (remote desktop) session

    Locked
    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • How to get Notepad++ to automatically indent one tab when hitting enter.

    6
    0 Votes
    6 Posts
    15k Views
    Jim DaileyJ
    @Pete-Norris I see. I’m pretty certain the lexer for the language (PHP in your case) controls the auto-indent behavior. I don’t think there is any way at run-time to modify its behavior. I assume you’d have to edit the lexer to make it behave differently and then build a custom NPP. I am not aware of any, but there may be a plug-in for NPP you could find that handles indentation in some other way. Sorry I have no better ideas.
  • Search function help!

    search
    3
    0 Votes
    3 Posts
    3k Views
    Patricia HuffP
    What worked for me to restore results window, was find the Notepad++ directory under AppData and delete it!
  • backup issue - backup is deleted when file is saved

    Locked
    4
    1 Votes
    4 Posts
    3k Views
    dailD
    You probably had the verbose option checked.
  • How can I save a txt. file as a Lyric file (lrc)?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Nicolas-N
    “File > Save as” Then type "myfile.lr"c in the file name field. Then click “Save”.
  • Switching files in multi-instance mode does not keep the cursor position

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • New person needs help

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied