costom gsm lib wont turn orange

costom gsm lib wont turn orange link to code

 GSM Shield example
 
 created 2011
 by Boris Landoni
 
 This example code is in the public domain.

 
 http://www.open-electronics.org
 http://www.futurashop.it
 */

#include <GSM_Shield.h>
//for enable disable debug rem or not the string       #define DEBUG_PRINT
// definition of instance of GSM class
GSM gsm;



void setup() {
  Serial.begin(9600);
  Serial.println("system startup"); 
  //gsm.InitSerLine(9600);   //initialize serial 1 
  gsm.TurnOn(9600);              //module power on
  //gsm.InitSerLine(9600);   //initialize serial 1 
  gsm.InitParam(PARAM_SET_1);//configure the module  
  gsm.Echo(1);               //enable AT echo 
}


void loop()
{
  
    int reg;
    reg=gsm.CheckRegistration();
    switch (reg){    
      case REG_NOT_REGISTERED:
        Serial.println("not registered");
        break;
      case REG_REGISTERED:
        Serial.println("GSM module is registered");      
        break;
      case REG_NO_RESPONSE:
        Serial.println("GSM doesn't response");
        break;
      case REG_COMM_LINE_BUSY:
        Serial.println("comm line is not free");
        break;
    }
    delay(2000);
    
    reg=gsm.IsRegistered();
      Serial.print("Registration ");
      Serial.println(reg);
    
    delay(50000);
}

and the pruduct
https://www.robotshop.com/en/icomsat-gsm-gprs-shield-arduino-compatible.html

or can i just use regular library?

The colors of the words in the Arduino IDE are meaningless. Someone long ago tried to make it do context specific coloring, but they did a really poor job and it doesn't work very well. It is all based on these "keywords.txt" files and any word in one of those files turns orange even if you're not using the library that file is in. Many library writers see how stupid that is and don't bother including one so nothing turns orange. The code works just the same.

If you want the colors of words to have some meaning then you'll need to get a little more "grown-up" IDE.

thanks for the reply but when i try to compile it i get exit status 1. but could i just use regular gsm shield lib?

hooverdan:
thanks for the reply but when i try to compile it i get exit status 1.

That's completely unrelated to how orange any of the words are. You have some error in your code. If you post the entire error message maybe someone can help you.

BTW: You should probably ask the mods to move this to Programming Questions. This board specifically states:

Installation & Troubleshooting -
For problems with Arduino itself, NOT your project

Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.