Tuesday, 3 December 2024

How to highlight selected text in notepad++

 


–> To highlight a block of code in Notepad++, please do the following steps

step-1 :- Select the required text.

step-2 :- Right click to display the context menu

step-3 :- Choose Style token and select any of the five choices available 

( Styles from Using 1st style to using 5th style ). Each is different colors. if you want yellow color choose using 3rd style.

–> If you want to create your own style you can use style configurator under Setting menu



Notepad++ How to highlight text? || How to highlight text in Notepad++

 Here are the steps to highlight your CURRENT LINE:

Settings - > Style Configurator

60928979-6048-4ffd-a7e1-28b1242a7295-image.png


Global Styles -> Current Line Background
Change the Background Color.

be062026-2806-40f0-99db-f3a8b20c1ef1-image.png



Monday, 17 July 2023

Excel Sort values in ascending order using function TEXTJOIN

 Excel :: 


Text :: 1,3,5,2,9,5,11

Result ::

1,2,3,5,5,9,11

Formula ::    

TEXTJOIN(",",1,SORT(MID(SUBSTITUTE(A1,",",REPT(" ",100)),SEQUENCE(LEN(A1)-LEN(SUBSTITUTE(A1,",",""))+1,,1,100),100)+0))

Wednesday, 18 May 2022

Visual studio run every time in new window

 Steps- 1

        1. Go to Tools >> Options

        2. Tap on Project and Solutions

        3. Tap on Web Project

        Uncheck 'Stop debugger when browser window is closed, close browser when debugging stop'

    


 Steps- 2

         1. Go to Tools >> Options

        2. Tap on Debugging

        3. Tap on General

            Uncheck "Enable JavaScript debugging for Asp.Net (Chrome and IE).'



Monday, 25 April 2022

Copy data with header in postgres sql (settings)

 Steps-

  1. Tap on File
  2. Tab on Options
  3. Query Tools
  4. Result Grid
  5. Checked last option - 'Copy Column Names'


Tuesday, 12 October 2021

How to validate URL address with and withour IP addresss in JavaScript/jquery

 //////// CSS

<style>

.validated_ok{border:1px solid green}

.validated_error{border:1px solid red}

.validated_okT{color:green}

.validated_errorT{color:red}

</style>

//////////////// HTML

<input type="text" class="cf_required" style='width:80%' name='website'>

<br>

<span id="urlsv"></span>

 

/////////////JS 

 

<script>

    $(document).ready(function () {

        $(".cf_required[name='website']").focusout(function () {

            console.log("Hi");

            var myVariable = $(this).val();

            var pattern = new RegExp('^(https?:\\/\\/)?' + // protocol

                '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name

                '((\\d{1,3}\\.){3}\\d{1,3}))' + // ip (v4) address

                '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + //port

                '(\\?[;&a-z\\d%_.~+=-]*)?' + // query string

                '(\\#[-a-z\\d_]*)?$', 'i');

            if (pattern.test(myVariable)) {

                $("#urlsv").html("Msg: Valid");

                $("#urlsv").addClass("validated_okT").removeClass("validated_errorT");

                $(this).addClass("validated_ok").removeClass("validated_error");

                console.log("Hello");

            } else {

                $("#urlsv").html("Msg: Inalid");

                $("#urlsv").removeClass("validated_okT").addClass("validated_errorT");

                $(this).removeClass("validated_ok").addClass("validated_error");

                console.log("bye");

            }

        });

    });

</script>

 

///////////////// Result


 

 



How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...